You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| tests | 3 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| gestform.py | 3 years ago | |
| requirements.txt | 3 years ago | |
README.md
GestForm Challenge
GestForm is a FizzBuzz like challenge.
In this test we need to :
- From a random (not pseudo random ?) list of number between -1000 to 1000
- For each we need to check:
- if divisible by 3 then display Geste (note the ending char "e")
- if divisible by 5 then display Forme (note the ending char "e")
- if divisible by 3 and 5 then display GestForm (not a concatenate of previous versions)
- else display the number
All files must be provided to be checked.
How use it (Debian/Ubuntu)
Create a venv
python3 -m venv gestform
cd gestform
# git clone https://gitlab.com/valbou2/GestForm
https://gitea.valbou26.fr/Abbeal/GestForm.git
source bin/activate
cd GestForm
python gestform.py
How to test it (Debian/Ubuntu)
Run tests from GestForm folder
source ../bin/activate
python -m unittest tests
Information
You can use requirements to show indent and PEP8 issues:
source ../bin/activate
pip install -r requirements.txt
python -m black ./
python -m flake8 ./
The project don't have dependencies to run.