Skip to content

Commit

Permalink
The test_null word leaves null on the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj committed Sep 21, 2023
1 parent fad2d6c commit ea8e3e2
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion exercises/practice/acronym/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/affine-cipher/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/armstrong-numbers/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/atbash-cipher/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/bob/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/collatz-conjecture/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/darts/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/gigasecond/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/hamming/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/hello-world/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/isogram/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/leap/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/luhn/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/pangram/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/raindrops/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/resistor-color/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/reverse-string/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/roman-numerals/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/series/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/triangle/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/trinary/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/two-fer/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/word-count/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/yacht/test-words.8th
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tests-failed

: test_null \ s w --
w:exec
null?
null? nip
if test-passed else test-failed then
;

Expand Down

0 comments on commit ea8e3e2

Please sign in to comment.