-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from nomennescio/bugfix-#6
Fix dropping past the arguments stack causes test display to show wrong numbers (#6)
- Loading branch information
Showing
4 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\ Copyright 2019 nomennescio | ||
s" stack underflow" describe#{ | ||
s" single test" it#{ | ||
<{ drop -> 0 }> | ||
}# | ||
s" double test" it#{ | ||
<{ drop -> 0 }> | ||
<{ drop drop -> 0 }> | ||
}# | ||
s" double test" it#{ | ||
<{ drop -> 0 0 }> | ||
<{ drop drop -> 0 0 }> | ||
}# | ||
s" double test" it#{ | ||
<{ drop -> 0 0 }> | ||
<{ drop drop -> 0 }> | ||
}# | ||
}# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
<DESCRIBE::>stack underflow | ||
|
||
<IT::>single test | ||
|
||
<FAILED::>Wrong number of results, expected 1 , got a 1 cell stack underflow | ||
|
||
<COMPLETEDIN::>0.033 ms | ||
|
||
<IT::>double test | ||
|
||
<FAILED::>Wrong number of results, expected 1 , got a 1 cell stack underflow | ||
|
||
<FAILED::>Wrong number of results, expected 1 , got a 2 cell stack underflow | ||
|
||
<COMPLETEDIN::>1565296144893.672 ms | ||
|
||
<IT::>double test | ||
|
||
<FAILED::>Wrong number of results, expected 2 , got a 1 cell stack underflow | ||
|
||
<FAILED::>Wrong number of results, expected 2 , got a 2 cell stack underflow | ||
|
||
<COMPLETEDIN::>1565296144893.759 ms | ||
|
||
<IT::>double test | ||
|
||
<FAILED::>Wrong number of results, expected 2 , got a 1 cell stack underflow | ||
|
||
<FAILED::>Wrong number of results, expected 1 , got a 2 cell stack underflow | ||
|
||
<COMPLETEDIN::>1565296144893.836 ms | ||
|
||
<COMPLETEDIN::>0.311 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters