Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with: test / ;with in all test.8th #124

Merged
merged 3 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/add-exercise
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ cp ./libs/exercism/test "exercises/practice/${slug}/libs/exercism/test"
cat << END_TEST > "exercises/practice/${slug}/test.8th"
"${slug}.8th" f:include
needs exercism/test

with: test
N tests

$(curl --silent "https://raw.githubusercontent.com/exercism/problem-specifications/main/exercises/${slug}/canonical-data.json")

end-of-tests
;with
END_TEST

touch "exercises/practice/${slug}/${slug}.8th"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/acronym/acronym.8th
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
: acronym \ s -- s

;
1 change: 0 additions & 1 deletion exercises/practice/acronym/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
2 changes: 2 additions & 0 deletions exercises/practice/acronym/test.8th
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"acronym.8th" f:include
needs exercism/test
with:test

9 tests

Expand Down Expand Up @@ -51,3 +52,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/affine-cipher/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
2 changes: 2 additions & 0 deletions exercises/practice/affine-cipher/test.8th
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"affine-cipher.8th" f:include
needs exercism/test
with: test

16 tests

Expand Down Expand Up @@ -84,3 +85,4 @@ SKIP-REST-OF-TESTS
null?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/armstrong-numbers/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/armstrong-numbers/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"armstrong-numbers.8th" f:include
needs exercism/test

with: test
11 tests

"Zero is an Armstrong number" ( 0 armstrong? ) true?
Expand All @@ -17,3 +17,4 @@ SKIP-REST-OF-TESTS
"The largest and last Armstrong number" ( 115132219018763992565095597973971522401 armstrong? ) true?

end-of-tests
;with
2 changes: 1 addition & 1 deletion exercises/practice/atbash-cipher/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ true var, run-test
die
;

with: test

3 changes: 2 additions & 1 deletion exercises/practice/atbash-cipher/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"atbash-cipher.8th" f:include
needs exercism/test

with: test
14 tests

"encode yes"
Expand Down Expand Up @@ -63,3 +63,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/bob/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/bob/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"bob.8th" f:include
needs exercism/test

with: test
17 tests

"prolonged silence"
Expand Down Expand Up @@ -91,3 +91,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/collatz-conjecture/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/collatz-conjecture/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"collatz-conjecture.8th" f:include
needs exercism/test

with: test
6 tests

"zero steps for one"
Expand Down Expand Up @@ -34,3 +34,4 @@ SKIP-REST-OF-TESTS
null?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/darts/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/darts/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"darts.8th" f:include
needs exercism/test

with: test
13 tests

"Missed target"
Expand Down Expand Up @@ -71,3 +71,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/eliuds-eggs/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/eliuds-eggs/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"pop-count.8th" f:include
needs exercism/test

with: test
4 tests

"0 eggs"
Expand All @@ -26,3 +26,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/etl/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/etl/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"etl.8th" f:include
needs exercism/test

with: test
4 tests

"single letter"
Expand Down Expand Up @@ -60,3 +60,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/gigasecond/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/gigasecond/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"gigasecond.8th" f:include
needs exercism/test

with: test
5 tests

\ Workaround for https://8th-dev.com/bin/bugs/tktview/624833cc8d
Expand Down Expand Up @@ -34,3 +34,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/hamming/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/hamming/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"hamming.8th" f:include
needs exercism/test

with: test
9 tests

"empty strands"
Expand Down Expand Up @@ -46,3 +46,4 @@ SKIP-REST-OF-TESTS
null?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/hello-world/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/hello-world/test.8th
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"hello-world.8th" f:include
needs exercism/test

with: test
1 tests

"hello world test" "Hello, World!" ( hello-world ) equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/isogram/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/isogram/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"isogram.8th" f:include
needs exercism/test

with: test
14 tests

"empty string" ( "" isogram? ) true?
Expand All @@ -20,3 +20,4 @@ SKIP-REST-OF-TESTS
"word with duplicated character and with two hyphens" ( "up-to-date" isogram? ) false?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/leap/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/leap/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"leap.8th" f:include
needs exercism/test

with: test
9 tests

"year not divisible by 4 in common year" ( 2015 leap-year? ) false?
Expand All @@ -15,3 +15,4 @@ SKIP-REST-OF-TESTS
"year divisible by 400 but not by 125 is still a leap year" ( 2400 leap-year? ) true?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/luhn/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/luhn/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"luhn.8th" f:include
needs exercism/test

with: test
22 tests

"single digit strings can not be valid"
Expand Down Expand Up @@ -94,3 +94,4 @@ SKIP-REST-OF-TESTS
false?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/pangram/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/pangram/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"pangram.8th" f:include
needs exercism/test

with: test
10 tests

"empty sentence"
Expand Down Expand Up @@ -46,3 +46,4 @@ SKIP-REST-OF-TESTS
true?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/pythagorean-triplet/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/pythagorean-triplet/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"pythagorean-triplet.8th" f:include
needs exercism/test

with: test
7 tests

\ Compare a1 to a2. Individual elements are compared with w (e.g., n:cmp).
Expand Down Expand Up @@ -66,3 +66,4 @@ SKIP-REST-OF-TESTS
\ 1_000_000 test-triplets-with-sum

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/raindrops/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/raindrops/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"raindrops.8th" f:include
needs exercism/test

with: test
18 tests

"the sound of 1 is 1"
Expand Down Expand Up @@ -96,3 +96,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/resistor-color/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/resistor-color/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"resistor-color.8th" f:include
needs exercism/test

with: test
4 tests

"Black" ( "black" color-code ) 0 equal?
Expand All @@ -11,3 +11,4 @@ SKIP-REST-OF-TESTS
"Colors" ( colors ) ["black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"] equal?

end-of-tests
;with
1 change: 0 additions & 1 deletion exercises/practice/reverse-string/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,3 @@ true var, run-test
die
;

with: test
3 changes: 2 additions & 1 deletion exercises/practice/reverse-string/test.8th
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"reverse-string.8th" f:include
needs exercism/test

with: test
6 tests

"an empty string"
Expand Down Expand Up @@ -36,3 +36,4 @@ SKIP-REST-OF-TESTS
equal?

end-of-tests
;with
Loading
Loading