https://github.com/bastienkody/testercpp09
Ecole 42 (last cpp module tests)
https://github.com/bastienkody/testercpp09
42school cpp cpp98 testing-tools
Last synced: 4 months ago
JSON representation
Ecole 42 (last cpp module tests)
- Host: GitHub
- URL: https://github.com/bastienkody/testercpp09
- Owner: bastienkody
- Created: 2023-12-16T16:18:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T15:49:37.000Z (over 1 year ago)
- Last Synced: 2025-06-29T16:43:59.017Z (5 months ago)
- Topics: 42school, cpp, cpp98, testing-tools
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WHAT IS THIS
__Ecole 42 cpp09 tester__
[ ON CONSTRUCTION ] --> in december 2023 : only ex00 + ex01 available
[ DISCLAIMER ] : it only prints the test and launch it : it's UP TO YOU to eyecheck if the program output match the test.
## EX00 BitcoinExchange
* Makefile flags and relink
* bad input.txt format tester (name, date, value overflow etc)
* no tests that modify the database (btc price cotation)
## EX01 Reverse Polish Notation
* Makefile flags and relink
* parsing tester (space parsing, bad: nb, order, operator, number of nb or operator)
* space parsing choices is up to you (only one or multiple, leading one, tabs)
* value calculation tests (expected results written for each test)
# INSTALL
clone inside your cpp09 : `cd cpp09 && git clone git@github.com:bastienkody/testercpp09.git`
### EX00
copy tester_cpp09ex00btc.sh in ex00/ : `cp testercpp09/tester_cpp09ex00btc.sh ./ex00`
launch : `cd ex00 && ./tester_cpp09ex00btc.sh`
Quick look on all inputs.txt : `cat ../testercpp09/inputstxt/*`
Quick look on specific test X : `cat ../testercpp09/inputstxt/inputsX.txt`
### EX01
copy the tester_cpp09ex01rpn.sh in ex01/ : `cp testercpp09/tester_cpp09ex01rpn.sh ./ex01`
launch : `cd ex01 && ./tester_cpp09ex01rpn.sh`
# REQUIREMENTS
bash
expected files in cpp09/ex00 : Makefile, main.cpp, BitcoinExchange.{cpp, hpp}
expected files in cpp09/ex01 : Makefile, main.cpp, RPN.{cpp, hpp}