Commit Graph

247 Commits

Author SHA1 Message Date
Glenn Jackman
3694912f73 Update test.8th (#125)
Just missing a space in `with:test`
2024-03-05 09:52:26 -05:00
Bruce Axtens
efafc5417b with: test / ;with in all test.8th (#124)
* with: test / ;with in all test.8th

* remove useless with: test from test libs

* artefact removal
2024-03-05 13:52:32 +01:00
Exercism Bot
ddffe63433 🤖 Sync org-wide files to upstream repo (#123)
More info: 0c0972d1df
2024-03-01 08:51:56 -05:00
Erik Schierboom
d12c02dabe roman-numerals: sync (#122)
* Sync the `roman-numerals` exercise's docs with the latest data.

* Sync the `roman-numerals` exercise's metadata with the latest data.
2024-02-06 07:59:04 -05:00
Erik Schierboom
089739aa98 Rename the pop-count exercise to eliuds-eggs. (#121) 2024-02-02 12:57:39 -05:00
Exercism Bot
54f05439be 🤖 Sync org-wide files to upstream repo (#120)
More info: bfc6fe525e
2024-02-01 17:45:24 -05:00
Erik Schierboom
1f368e74b4 Sync the raindrops exercise's docs with the latest data. (#119) 2024-01-29 15:10:12 -05:00
Exercism Bot
60b87e9724 🤖 Sync org-wide files to upstream repo (#118)
More info: 42a096591a
2024-01-26 07:30:42 -05:00
Erik Schierboom
137914f429 reverse-string: sync (#117)
* Sync the `reverse-string` exercise's docs with the latest data.

* Sync the `reverse-string` exercise's metadata with the latest data.
2024-01-18 12:57:52 -05:00
Erik Schierboom
9d06108650 Sync the leap exercise's docs with the latest data. (#116) 2024-01-16 09:11:32 -05:00
Glenn Jackman
24218ddf23 Sync leap (#115) 2024-01-15 12:55:50 +08:00
Glenn Jackman
4e9ae857fc add notes about contributing (#114) 2024-01-05 20:36:28 +08:00
Glenn Jackman
1176bfbd94 sync docs and metadata (#111)
* sync docs and metadata

* ci: update actions/checkout version (#112)

---------

Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
2024-01-04 08:57:45 +01:00
Erik Schierboom
35023aab3c Sync fetch-configlet.ps1 script (#113) 2024-01-04 06:12:32 +01:00
Erik Schierboom
b551c64f2b ci: update actions/checkout version (#112) 2024-01-03 10:00:20 +01:00
Erik Schierboom
8049df00db Update the metadata for the pop-count exercise (#110) 2023-11-01 08:31:32 -04:00
Glenn Jackman
8ea478d1c5 New exercise: Pop Count (#108) 2023-10-18 19:16:23 -04:00
Glenn Jackman
e8d76ac427 New exercise: ETL (#107) 2023-10-14 07:50:48 +08:00
Glenn Jackman
f2dcf6f8e4 Failed tests to show actual and expected values. (#106) 2023-10-13 17:09:05 +08:00
Glenn Jackman
868b891951 Remove outdated testing instructions from exercises, but keep the good stuff. (#103) 2023-10-12 08:34:43 -04:00
Glenn Jackman
7130c60ea4 Apply the new test lib to other exercises (#104)
* update testing instructions

* new test lib: acronym

* new test lib: affine-cipher

* new test lib: armstrong-numbers

* new test lib: atbash-cipher

* new test lib: bob

* new test lib: collatz-conjecture

* new test lib: darts

* new test lib: gigasecond

* update previous exercises with date equal

* new test lib: hamming

* new test lib: hello-world

* new test lib: isogram

* new test lib: leap

* new test lib: luhn

* new test lib: pangram

* new test lib: pythagorean-triplet

* new test lib: raindrops

* new test lib: resistor-color

* new test lib: reverse-string

* new test lib: roman-numerals

* new test lib: series

* new test lib: triangle

* new test lib: trinary

* new test lib: two-fer

* new test lib: word-count

* new test lib: yacht
2023-10-12 11:06:21 +08:00
Glenn Jackman
910cd21d74 Rework test-words into "test" namespace (#102)
* Rework test-words into "test" namespace

* using test lib and harness, as discussed in 8th forum

* revert to test-words; merge sieve-test.8th and test.8th

* `needs` does look in libs/
2023-10-11 10:44:27 -04:00
Glenn Jackman
d7e5e36502 Create the Sieve of Eratosthenes exercise. (#101)
Also, a script to automate adding new exercises.
2023-09-29 08:22:51 +08:00
Tim Siegel
ca7535eeb6 test-words: fix test_eqa2 to skip tests, normalize test-words.8th (#100)
* test-words: fix test_eqa2 to skip tests, normalize test-words.8th

1) All test-words.8th should be identical to avoid maintenance
   headaches. The pythagorean-triplet/test-words.8th was not in sync
   with the rest.

2) The new test_eqa2 word was missing the run-test? check; so it ignored
   SKIP-REST-OF-TESTS.

* test-words.8th: Create lib/test-words.8th main copy
2023-09-27 07:05:47 +08:00
Glenn Jackman
fa3e12ed31 Skip tests (#99)
* SKIP-REST-OF-TESTS proof of concept for acronym exercise

* apply to rest of exercises

* markdown files must have exactly one top-level header

* rewrite help files

* re-add special words for pythagorean-triplet
2023-09-25 18:10:26 +08:00
Tim Siegel
a36ace9f24 Pythagorean triplet (#96)
* pythagorean-triplet: new exercise

The instructions, test cases, etc. are taken from the C track.

The example solution uses a formula for generating primitive Pythagorean
triplets directly, as written up in
http://www.asiapacific-mathnews.com/05/0502/0009_0015.pdf

Testing requires a new comparison function for test-words.8th. I call it
test_eqa2, which compares arrays-of-arrays to each other.

* pythagorean-triplet: update test-words.8th to latest version
2023-09-22 04:21:32 +08:00
Tim Siegel
802783e755 gigasecond: Fix failing tests (#98)
Set the timezone to UTC in the test script.
2023-09-21 13:28:03 -04:00
Glenn Jackman
15249b5cf9 The test_null word leaves null on the stack (#97) 2023-09-21 22:22:35 +08:00
Glenn Jackman
fad2d6c491 Exit status for tests should be non-zero if test failures (#95)
* Add test script that doesn't rely on docker

* Modify test-words to be able to exit with non-zero exit status for test failures: Luhn exercise only

* Modify test-words to be able to exit with non-zero exit status for test failures: all other exercises

* Tweaks

* be more specific about the exit status
2023-09-21 07:05:27 +08:00
Bruce Axtens
3d916922e1 add test_map_eq to test-words. missing in word-count (#94) 2023-09-13 11:12:22 +08:00
Bruce Axtens
c14cfee5e6 Test fix (#93)
* test_eqa made global. handling for counted tests

* test_eqa made global. added support for counted tests

* counts and additions to test routines

* better naming. smaller code. check for prem exit
2023-09-13 09:24:55 +08:00
Tim Siegel
8e01b8c569 exercises/luhn: Fix SED and stack handling (#92)
The SEDs for most functions were not correct, making it hard to reason
about the program. For example, contains-only-numeric polluted the stack
with a regex that later had to be dropped in various places. The
behavior was correct, but confusing.
2023-09-10 08:46:38 +08:00
Fepelus
8907ad1734 Reword instructions.append.md (#90) (#91)
* Reword instructions.append.md (#90)

* Move `bye` from *-tests.8th to tests.8th (#90)
2023-09-04 13:56:36 +02:00
Glenn Jackman
c8e04b19eb Sync tests (#88)
bin/configlet sync --tests include --update
2023-09-02 18:36:55 +08:00
Glenn Jackman
233a2b02cf Last two test files with missing "bye" (#89) 2023-09-02 14:03:37 +08:00
Glenn Jackman
edbeeb890d Add some details about how to acquire the installation zip file, and a warning for MacOS users (#87) 2023-09-01 10:58:31 +08:00
Glenn Jackman
400704a8e5 Forgot to say "bye" in resistor-color-tests.8th (#86) 2023-09-01 10:57:22 +08:00
Glenn Jackman
c4e65ded95 Add resistor-color exercise (#85) 2023-08-31 11:13:51 +08:00
Glenn Jackman
e5ecfd36a3 Add atbash-cipher exercise (#82)
* Add atbash-cipher exercise

* contributors

---------

Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
2023-08-30 15:12:21 +02:00
Glenn Jackman
602c4e841b add Series exercise (#81)
* add Series exercise

* contributors
2023-08-30 15:12:11 +02:00
Erik Schierboom
c5fa71bdb1 Revert "Checkout using different token name (#83)" (#84)
This reverts commit df6867239d.
2023-08-30 09:55:57 +02:00
Erik Schierboom
df6867239d Checkout using different token name (#83) 2023-08-30 09:53:41 +02:00
Glenn Jackman
b8dd7f1ca4 Leap tests: years are transposed in two tests (#78) 2023-08-29 14:42:38 +02:00
András B Nagy
6de1d52af9 Sync exercise files (#76)
* Sync roman-numerals

* Sync reverse-string

* Sync acronym

* Sync docs and metadata for multiple exercises

* Sync tests for affine-cipher
2023-08-29 14:42:16 +02:00
Glenn Jackman
7d211ad3b1 Add Darts exercise (#77) 2023-08-29 14:41:13 +02:00
Erik Schierboom
789c935823 Update PAT (#79) 2023-08-29 14:04:18 +02:00
Erik Schierboom
726925fe3f Convert average_run_time to an integer. (#75)
There are two reasons for this change:

1. Having the average run time as a float gives the impression of being exact, whereas the actual run time wildly varies due to a wide variety of reasons (e.g. how busy it is on the server). That fractional component will almost never actually conform the real situation.

2. jq is often used to work with track config.json config files (e.g. to add elements to it), and it will remove any trailing .0 fractional part from a number, which caused configlet lint to fail. Those JQ scripts then have to work around this by manually adding .0 to it.
2023-07-18 10:38:51 +02:00
Katrina Owen
aa0dd8d628 Sync two-fer docs with problem-specifications (#72)
The two-fer exercise has been overhauled as part of a project
to make practice exercises more consistent and friendly.

For more context, please see the discussion in the forum, as well as
the pull request that updated the exercise in the problem-specifications
repository:

- https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943
- https://github.com/exercism/problem-specifications/pull/2204
2023-05-16 11:57:25 +02:00
Katrina Owen
4512155d86 Sync word-count docs with problem-specifications (#74)
The word-count exercise has been overhauled as part of a project
to make practice exercises more consistent and friendly.

For more context, please see the discussion in the forum, as well as
the pull request that updated the exercise in the problem-specifications
repository:

- https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943
- https://github.com/exercism/problem-specifications/pull/2247
2023-05-16 11:43:58 +02:00
Katrina Owen
993cee50ce Sync pangram docs with problem-specifications (#73)
The pangram exercise has been overhauled as part of a project
to make practice exercises more consistent and friendly.

For more context, please see the discussion in the forum, as well as
the pull request that updated the exercise in the problem-specifications
repository:

- https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943
- https://github.com/exercism/problem-specifications/pull/2215

----

If you approve this pull request, I will eventually merge it. However, if you are happy with this change **please merge the pull request**, as it will get the changes into the hands of the students much more quickly.
2023-03-14 10:55:39 +01:00