https://github.com/cbl/gdp-exam
https://github.com/cbl/gdp-exam
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cbl/gdp-exam
- Owner: cbl
- Created: 2021-02-01T14:10:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T12:30:59.000Z (over 5 years ago)
- Last Synced: 2025-04-04T04:11:22.179Z (about 1 year ago)
- Language: C++
- Size: 275 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grundlagen der Programmierung Exam Wintersemester 20/21
## Setup
Compile command:
```shell
g++ -Wall -std=c++17 -I . -Os -o main \
main.cpp \
Bank.cpp \
Database.cpp \
Filesystem.cpp \
PriceCalculator.cpp \
Stop.cpp \
StopCollection.cpp \
TerminalUserInterface.cpp
```
Execute the generated binary:
```shell
./main
```
## Testing
### Run Tests
To run the unit tests the tests have to be compiled first:
```shell
g++ -Wall -std=c++17 -I . -o bin/test_database test/test_database.cpp && \
g++ -Wall -std=c++17 -I . -o bin/test_price_calculator test/test_price_calculator.cpp && \
g++ -Wall -std=c++17 -I . -o bin/test_stop_collection test/test_stop_collection.cpp && \
g++ -Wall -std=c++17 -I . -o bin/test test/test.cpp
```
These can then be executed:
```shell
bin/test_database && \
bin/test_price_calculator && \
bin/test_stop_collection && \
bin/test
```