Commit Graph

320 Commits

Author SHA1 Message Date
eslopfer 8f7ba8f6cd test(largest): create the folders and remove them when running the test 2023-02-09 14:01:19 +00:00
nprimo 06dc3ff388 feat(largest): add new bash exercise
- add subject, solution, test and support files
2023-02-09 14:01:19 +00:00
miguel 36f079db98 docs(grades): fix test and error message 2023-02-02 09:49:25 +00:00
miguel 1f9b277887 fix(grades): fix and add more tests 2023-02-02 09:49:25 +00:00
miguel 8182d373d2 fix(grades):change the test to be more flexible 2023-02-02 09:49:25 +00:00
miguel bc64c2cf03 fixing readme solution and test 2023-02-02 09:49:25 +00:00
miguel a1b76b0f0b feat(grades): add subject, test and solution for the exercise 2023-02-02 09:49:25 +00:00
eslopfer 7e21117858 chore(clean_the_list): move to right repository 2023-02-01 07:03:48 +00:00
eslopfer a7487162b8 chore(shopping): move to right repository 2023-02-01 07:03:48 +00:00
eslopfer da556a6082 test(clean_the_list): fix wrong test 2023-02-01 07:03:48 +00:00
eslopfer 59941b69bb fix(clean_the_list): remove file submitted by mistake 2023-02-01 07:03:48 +00:00
eslopfer ed8474e3cc test(clean_the_list): fix wrong test output 2023-02-01 07:03:48 +00:00
eslopfer 349398405a test(clen_the_list): add tests for exercise 2023-02-01 07:03:48 +00:00
eslopfer d8e84c349e feat(clean_the_list): add solution for exercise 2023-02-01 07:03:48 +00:00
eslopfer 1e0f29a661 chore(concat_string_test): move to right repository 2023-02-01 07:02:34 +00:00
eslopfer dd81c5c8a6 chore(concat_string): move to right repository 2023-02-01 07:02:34 +00:00
eslopfer 165515d247 test(concat_string): add tests for exercise 2023-02-01 07:02:34 +00:00
eslopfer 8460a1140c feat(concat_string): add solution for exercise 2023-02-01 07:02:34 +00:00
Michele Sessa f8201da931 chore(numerical_operations_the_return): add subject for new py exercise in scripting piscine 2023-01-24 15:22:06 +00:00
Michele Sessa 0ff5b55ec5 feat(numerical-operations-the-return): add new python exercise to scripting piscine 2023-01-24 15:22:06 +00:00
miguel 169a5dfb35 fix(dockerfile): add apt-utils so that the actions pass in public 2023-01-24 15:20:55 +00:00
Michele Sessa 4c05e7d7fb chore(punishment): move tests and solutions to another repo 2023-01-24 15:17:31 +00:00
Michele Sessa d0f04efdaf feat(punishment): add new python exercise to scripting piscine 2023-01-24 15:17:31 +00:00
Michele Sessa 1984891870 feat(hello_python): add new exercise subject for scripting piscine 2023-01-23 17:02:43 +00:00
Michele Sessa 01eaea466d feat(hello_python): add new py exercise to scripting piscine 2023-01-23 17:02:43 +00:00
miguel 2235a8b1d0 docs(in-the-dark):remove echo from the test 2023-01-18 18:18:15 +00:00
miguel 8ce0dfcac1 fix(devops): fix folder in the hard-perm exercise
remove unnecessary test in the exercise in-the-dark
add clarification in the readme of in-the-dark
2023-01-18 18:18:15 +00:00
miguel de6caf07f3 fix(append-output): fix test and solution in order to create the file results.txt with some text inside already
add info on the readme
give the two files for the student to test their solution
2023-01-18 18:05:59 +00:00
miguel 748344f23d fix(append-output): fixing test readme and solution 2023-01-18 18:05:59 +00:00
miguel 0456bc5b5d feat(append-output): add subject, test and solution for the exercise 2023-01-18 18:05:59 +00:00
miguel e298d48ed9 feat(details): add subject, test and solution for the exercise 2023-01-18 18:02:57 +00:00
eslopfer a1a27fe0f5 test(file-cheker): create test folder and delete it from test file 2023-01-18 17:19:46 +00:00
eslopfer 22068682cb test(file-cheker): remove test files 2023-01-18 17:19:46 +00:00
eslopfer ef79658c09 test(file-cheker): set permissions when running the tests 2023-01-18 17:19:46 +00:00
eslopfer 666cc027fc test(file-checker): recreated files with right permissions again 2023-01-18 17:19:46 +00:00
eslopfer a2e42772e5 test(file-checker): remove files to create them from scratch 2023-01-18 17:19:46 +00:00
eslopfer 168fa94c2b test(file-checker): refactor test for robustness 2023-01-18 17:19:46 +00:00
eslopfer 8904b74cd3 test(file-checker): fix permissions in test files 2023-01-18 17:19:46 +00:00
eslopfer c63702c971 test(file-checker): add files to test 2023-01-18 17:19:46 +00:00
eslopfer 0af1b9f161 test(file-checker): fix wrong file to test and wrong variables 2023-01-18 17:19:46 +00:00
eslopfer ed41ff6929 fix(file-checker): change permission to make the file executable 2023-01-18 17:19:46 +00:00
eslopfer 8ec5b5023c fix(file-checker): change permission to make it executable 2023-01-18 17:19:46 +00:00
eslopfer 1fe8893aaf test(file-checker): add test for exercise 2023-01-18 17:19:46 +00:00
eslopfer 5558a83c62 feat(file-checker): add solution for exercise 2023-01-18 17:19:46 +00:00
miguel a72333ab76 fix(devops): fixing typos and changing perms in the exercise hard-perm 2023-01-18 15:53:28 +00:00
Michele dc8002d92e
DEV-3951-calculator (#1706)
* feat(calculator): add new exercise to scripting piscine

* test(calculator): fix swapped exit codes for error handling

* docs(calculator): clarify function behavior for errors

* test(calculator): update error message for invalid number

* docs(calculator): add explicit case statement requirement

improve references section style
add case and getent examples

* fix(calculator): remove getent info in the subject

* chore(calculator): make the solution executable

* test(calculator): add check for case usage

* test(calculator): fix case statement usage check on wrong file

* fix(calculator): remove script added by error

revert changes committed by mistake on Dockerfile and entrypoint.sh

* style(calculator): add newline at end of file
2023-01-18 14:50:34 +00:00
miguel 01857cd9cc fix(Dockerfile): adding the tree command to fix a bug with the scripting tests 2023-01-18 13:49:53 +00:00
Michele Sessa 1d5db2e77c test(joker-num): remove unused variable in tester 2023-01-18 10:44:03 +00:00
Michele Sessa d39254e5d4 test(joker-num): add bash unofficial strict mode 2023-01-18 10:44:03 +00:00
Michele Sessa 3f21c5d32e feat(joker-num): add new exercise to scripting piscine 2023-01-18 10:44:03 +00:00
eslopfer 9025836ce8 test(joker-num): add provisional tests 2023-01-18 10:44:03 +00:00
eslopfer 1cdf6cb27c fix(joker-num): remove unnecessary flag 2023-01-18 10:44:03 +00:00
eslopfer ed02670e16 feat(joker-num): add solution to exercise 2023-01-18 10:44:03 +00:00
miguel 107d7ac4ad fix(in-back-ground): add check for the nohup command 2023-01-17 18:34:15 +00:00
miguel 9d0f9d4506 fix(): fixing the test
adding info in the readme
2023-01-17 18:34:15 +00:00
miguel da685d8b85 fix(in-back-ground): fixing the test ang improving subject 2023-01-17 18:34:15 +00:00
miguel a97ca4ed40 fix(in-back-ground): remove echos 2023-01-17 18:34:15 +00:00
miguel ab2fea635f fix(in-back-ground):fixing test and adding info to the readme 2023-01-17 18:34:15 +00:00
miguel f66634c212 feat(in-back-ground): add subject, test and solution for the exercise 2023-01-17 18:34:15 +00:00
nprimo 9bdb8f1217 feat(remake): clarify exercise
- specify what happens when directory passed as argument does not
exist
- add hints in subjects
- update solution and tests accordingly
2023-01-17 18:24:34 +00:00
nprimo 48993bb471 docs(remake): improve subject
- run prettier to fix formatting
- make example generic with `user`
- improve clarity on exercise objective
- remove created files after tests are run to allow consecutive
tests executions without errors
2023-01-17 18:24:34 +00:00
nprimo f1a7dd0d2b feat(remake): add subject, tests and solution 2023-01-17 18:24:34 +00:00
miguel 5f517ea08f fix(left): fixing test 2023-01-17 18:17:11 +00:00
miguel 8995643d53 feat(left): add subject, test and solution for the exercise 2023-01-17 18:17:11 +00:00
miguel 6ce50f2bde feat(burial): add subject, test and solution for the exercise 2023-01-17 16:37:00 +00:00
miguel 74c7460405 fix(hard-conditions): creating the files in the test and removing unnecessary folder
adding details in the readme
2023-01-17 16:36:12 +00:00
miguel 9eb5d849d5 fix(hard-conditions): adding test case for nos executable 2023-01-17 16:36:12 +00:00
miguel 737ec808b1 feat(hard-conditions): add subject, test and solution for the exercise 2023-01-17 16:36:12 +00:00
Michele Sessa ed054578b9 docs(input-redirection): fix naming inconsistencies 2023-01-17 14:04:23 +00:00
Michele Sessa 0549bcf421 feat(input-redirection): add new exercise to scripting piscine 2023-01-17 14:04:23 +00:00
miguel 5ffb2348f5 fix(right) fixing the test, readme and solution 2023-01-17 13:36:22 +00:00
miguel 5245101b91 feat(right): add subject, test and solution for the exercise 2023-01-17 13:36:22 +00:00
miguel 15a88f5137 feat(in-the-dark): add subject, test and solution for the exercise 2023-01-16 18:34:18 +00:00
miguel 5f8365c19c fix(easy-conditions): Fixing exercise due to misunderstanding of the objective 2023-01-16 18:33:08 +00:00
miguel 9becc5396a feat(easy-conditions): add subject, test and solution for the exercise 2023-01-16 18:33:08 +00:00
Zouhair AMAZZAL 2b77c87031
DEV-3919-my-ls (#1660)
* DEV-3919 feat(my-ls) add subject and tests for my-ls project

* DEV-3919 fix(custom-ls) change the name of the exercise from my-ls to custom-ls

* DEV-3919 docs(custom-ls) fix grammar errors

* DEV-3919 test(custom-ls) fix unalias in tests

* DEV-3919 docs(custom-ls) add permanently alias teaching

* test(custom-ls): fix test not able to run aliases

Co-authored-by: Zouhair AMAZZAL <zouhair.amazzal@01talent.com>
Co-authored-by: Michele Sessa <mikysett@gmail.com>
2023-01-16 11:56:59 +00:00
nprimo ce6ef6d186 refactor(array-selector): refactor test
- make challenge a variadic function
- simplify test using challenge for all the test cases
2023-01-13 17:26:17 +00:00
nprimo c231898bca fix(array-selector): remove exit command from solution 2023-01-13 17:26:17 +00:00
nprimo c9f0245673 fix(array-selector): add execute mode to test script 2023-01-13 17:26:17 +00:00
nprimo 595c044136 feat(array-selector): add test 2023-01-13 17:26:17 +00:00
nprimo 9038c5b3dd feat(array-selector): add solution 2023-01-13 17:26:17 +00:00
miguel 04e90aa8be fix(comparator):fixing the test
improving error message in the solution
add readme info about error message
2023-01-13 15:21:24 +00:00
miguel fb239fd7d2 fix(comparator):fixing test and adding info to the readme 2023-01-13 15:21:24 +00:00
miguel d07a43ebe8 feat(comparator): add subject, test and solution for the exercise 2023-01-13 15:21:24 +00:00
miguel eb6e281da0 feat(file-details): add subject, test and solution for the exercise 2023-01-13 13:34:04 +00:00
nprimo ad0ea7ea91 fix(auto-exec-bin): fix test bug
- replace bash command with source to update current bash PATH
and not a sub-bash one
- replace binary with simple bash script - image has no access to
internet
- update subject accordingly
2023-01-13 09:17:04 +00:00
Zouhair AMAZZAL 60deacdbb2 DEV-3918 test(auto-exec-bin) fix the test, uncorrect condition to check if bin already exists 2023-01-13 09:17:04 +00:00
Zouhair AMAZZAL d1295b02a8 DEV-3918 feat(auto-exec-bin) add new subject and tests for auto-exec-bin exercise 2023-01-13 09:17:04 +00:00
Michele Sessa 3d0e7cb960 test(bin-status): fix tests always returning success 2023-01-12 16:59:34 +00:00
Zouhair AMAZZAL 95509fae9a DEV-3916 feat(bin-status) add subject and tests for bin-status exercise 2023-01-12 16:59:34 +00:00
miguel ab5b82d1bd docs(greatest-of-all): correct typos 2023-01-12 16:45:09 +00:00
miguel 447de57f08 fix(): correcting typos in readme
fixing the test work with a range of numbers and add error checking
fixing the solution according to the test
2023-01-12 16:45:09 +00:00
miguel 962b6217b4 feat(greatest-of-all): add subject, test and solution for the exercise 2023-01-12 16:45:09 +00:00
Michele Sessa ebc79e5a13 chore(check-user): make the solution executable 2023-01-11 18:01:28 +00:00
Michele Sessa fd80d337d2 style(check-user): apply autoformat to tests 2023-01-11 18:01:28 +00:00
Michele Sessa b7197ba49c feat(check-user): add new exercise for scripting piscine 2023-01-11 18:01:28 +00:00
eslopfer 8bf61c6a45 refactor(division): modify solution to avoid having to exit 2023-01-09 16:21:06 +00:00
eslopfer 596e6bc683 fix(division): refactor to exit with 0 2023-01-09 16:21:06 +00:00
eslopfer 82751669c2 test(division: add check for test command) 2023-01-09 16:21:06 +00:00
eslopfer cf304b85d4 fix(division): remove wrong file pushed 2023-01-09 16:21:06 +00:00