Commit Graph

12 Commits

Author SHA1 Message Date
BethanyG
dcc052c730 Updtated tests for Forth from problem specs. (#3814) 2024-11-04 16:09:36 -08:00
BethanyG
be794198e1 [Resistor Color Expert]: Corrected Small Typos (#3469)
* Corrected small typos around resistor bands.

* Due to failing CI, alterations to the test generator script were needed.
The generated vs submitted diff now skips the first three lines of the file
so that the generation date is not picked up and flagged as needing regeneration.

Sadly, a workaround was also needed to prevent Python difflib from noting the difference
anyways and producing an empty "false positive" diff.

All templates and test files also needed to be altered to ensure that the first three
lines of every test file will always be the autogeneration comment and date.

Hopefully, this will now stop the CI failures without creating any subtle additional bugs.

* Touch up to bowling template.  Added back the error raising utility.
* Touch up to two-bucket template to add back in error raising utility.
[no important files changed]
2023-07-21 16:54:40 -07:00
BethanyG
aa3e379ff1 [DOCS]: Update Python Versions and Requirements (#3467)
* Additional sweep to update Python versions and supported Python versions.
* Fixed requirements and CONTRIBUTING.
* Trying a different line skip to see if it fixes CI.  CI is failing on test file generation again.
* Once again re-rendering tests to see if it fixes CI.
[no important files changed]
2023-07-16 15:09:14 -07:00
BethanyG
b49664ac66 [Tooling]: Changed Generate Script to Skip Diffing Generated Comments & Timestamp (#3466)
* Changed generate script to skp diffing generated comments and timestamp at top of file.
* Reordered and regenerated test files for practice exercises.
[no important files changed]
2023-07-15 15:27:31 -07:00
BethanyG
e7a6b0dc7d [JinJa2] Corrected the macro used for comments on the test file. (#3373)
* Corrected the macro for comments on the test file.
* Added current_date (utcnow()) variable available for template macros.
* Removed unnecessary datetime import from macros file.
* Regenerated all practice exercise test files to add timestamp.
* Changed `datetime.now(tz=timezone.utc)` to `datetime.now(tz=timezone.utc).date()`
* Second regeneration to remove `timestamp` and just keep `date` for test files.
[no important files changed]
2023-07-14 15:52:15 -07:00
BethanyG
3ec358010a Updated Forth from cannonical data.
Synced tests.toml, regenerated test cases.
2022-02-09 20:08:58 -08:00
BethanyG
b47809622e Pulled down updates from problem-specifications. Regenerated test file. (#2744) 2021-11-10 22:11:20 +01:00
BethanyG
d77deeb432 [Practice Exercises]: Add Better Error Handling Instructions & Tests for Error Raising Messages (# 3 of 8) (#2692)
* Added instruciton append for error handling, updated JinJa2 template and example and regenerated test file.

* Added instruction append on error handling and edited JinJa2 template and example.py. Regenerated test file.

* Added instructions append for error handling, updated JinJa2 template and example, and regenerated test files.

* Added instructions append for error handling, updated JinJa2 template and example, and regenerated test files.

* Regenerated go-counting test file.  Again.

* EOL

Co-authored-by: Victor Goff <keeperotphones@gmail.com>
2021-10-25 23:05:13 +02:00
BethanyG
9ca2cca15e Regenerated forth_test.py to adjust for changes in problem-specs introduced in PR#1787. 2021-05-01 15:10:44 -07:00
Corey McCandless
752bf57c9f forth: do not use subclasses for tests 2021-02-06 12:53:29 -08:00
Corey McCandless
ae3be07737 use python3.8 in CI and run test generator 2021-02-01 19:08:02 -08:00
Erik Schierboom
c5d9d9c0b3 [v3] Move existing exercises to exercises/practice 2021-01-29 11:14:36 -05:00