Skip to content

Commit

Permalink
no more array insensitive dots as recent 8th update corrects array to…
Browse files Browse the repository at this point in the history
… string conversion issue
  • Loading branch information
axtens committed Apr 29, 2024
1 parent e53aee8 commit 240bf17
Show file tree
Hide file tree
Showing 41 changed files with 82 additions and 404 deletions.
11 changes: 2 additions & 9 deletions exercises/practice/acronym/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/affine-cipher/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/armstrong-numbers/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/atbash-cipher/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/bob/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/collatz-conjecture/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/darts/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/difference-of-squares/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/eliuds-eggs/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/etl/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/flatten-array/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/gigasecond/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
18 changes: 2 additions & 16 deletions exercises/practice/grains/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
1 tests-passed n:+!
con:green con:onBlack . space " ... OK" . con:white con:onBlack cr
;

: test-skipped \ s --
1 tests-skipped n:+!
con:cyan con:onBlack . space " ... SKIPPED" . con:white con:onBlack cr
Expand All @@ -35,8 +21,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/hamming/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
11 changes: 2 additions & 9 deletions exercises/practice/hello-world/libs/exercism/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ true var, run-test

\ Some utility words

: array-insens-dot \ x -- \\ removes leading space on stringified arrays
dup >kind ns:a n:=
if
>s s:trim
then
.
;

: test-passed \ s x x -- \\ test name, expected value, actual value
2drop
Expand All @@ -35,8 +28,8 @@ true var, run-test
1 tests-failed n:+!
rot
con:red con:onBlack . space " ... FAIL" . con:white con:onBlack cr
" Actual: «" . array-insens-dot "»" . cr
" Expected: «" . array-insens-dot "»" . cr cr
" Actual: «" . . "»" . cr
" Expected: «" . . "»" . cr cr
;

: isword? \ x -- x f
Expand Down
Loading

0 comments on commit 240bf17

Please sign in to comment.