https://github.com/coders-school/parentheses
https://github.com/coders-school/parentheses
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coders-school/parentheses
- Owner: coders-school
- License: gpl-3.0
- Created: 2019-08-09T22:12:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T09:11:31.000Z (about 4 years ago)
- Last Synced: 2025-04-04T03:04:02.599Z (over 1 year ago)
- Language: C++
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Parentheses
Write a program to determine if the the parentheses (),
the brackets [], and the braces {}, in a string are balanced.
For example:
{{)(}} is not balanced because ) comes before (
({)} is not balanced because ) is not balanced between {}
and similarly the { is not balanced between ()
[({})] is balanced
{}([]) is balanced
{()}[[{}]] is balanced
1 commit = 1 nowy test (i tylko jeden). Mogą być też oddzielne commity na refactor. Każdy commit powinien się kompilować i przecchodzić testy (zawsze zielono na CI). Refaktoruj na bieżaco. Użyj STLa. Użyj Catcha lub GTesta do pracy w trybie TDD.
Gdy skończysz całość, napisz te same testy w drugim frameworku (Catch lub GTest) i również je wkomituj.
Struktura projektu:
```
Parentheses
|- src (pliki cpp)
|- inc (pliki hpp)
|- test_catch (pliki cpp z testami w Catch)
|- test_gtest (pliki cpp z testami z GTest)
|- CMakeLists.txt
```