@@ -35,7 +35,7 @@ describe('Forth', () => {
3535 xtest ( 'errors if there is only one value on the stack' , ( ) => {
3636 expect ( ( ) => {
3737 forth . evaluate ( '1 +' ) ;
38- } ) . toThrow ( new Error ( 'Stack empty ' ) ) ;
38+ } ) . toThrow ( new Error ( 'Only one value on the stack ' ) ) ;
3939 } ) ;
4040
4141 xtest ( 'more than two values on the stack' , ( ) => {
@@ -59,7 +59,7 @@ describe('Forth', () => {
5959 xtest ( 'errors if there is only one value on the stack' , ( ) => {
6060 expect ( ( ) => {
6161 forth . evaluate ( '1 -' ) ;
62- } ) . toThrow ( new Error ( 'Stack empty ' ) ) ;
62+ } ) . toThrow ( new Error ( 'Only one value on the stack ' ) ) ;
6363 } ) ;
6464
6565 xtest ( 'more than two values on the stack' , ( ) => {
@@ -83,7 +83,7 @@ describe('Forth', () => {
8383 xtest ( 'errors if there is only one value on the stack' , ( ) => {
8484 expect ( ( ) => {
8585 forth . evaluate ( '1 *' ) ;
86- } ) . toThrow ( new Error ( 'Stack empty ' ) ) ;
86+ } ) . toThrow ( new Error ( 'Only one value on the stack ' ) ) ;
8787 } ) ;
8888
8989 xtest ( 'more than two values on the stack' , ( ) => {
@@ -118,7 +118,7 @@ describe('Forth', () => {
118118 xtest ( 'errors if there is only one value on the stack' , ( ) => {
119119 expect ( ( ) => {
120120 forth . evaluate ( '1 /' ) ;
121- } ) . toThrow ( new Error ( 'Stack empty ' ) ) ;
121+ } ) . toThrow ( new Error ( 'Only one value on the stack ' ) ) ;
122122 } ) ;
123123
124124 xtest ( 'more than two values on the stack' , ( ) => {
@@ -205,7 +205,7 @@ describe('Forth', () => {
205205 xtest ( 'errors if there is only one value on the stack' , ( ) => {
206206 expect ( ( ) => {
207207 forth . evaluate ( '1 swap' ) ;
208- } ) . toThrow ( new Error ( 'Stack empty ' ) ) ;
208+ } ) . toThrow ( new Error ( 'Only one value on the stack ' ) ) ;
209209 } ) ;
210210 } ) ;
211211
@@ -229,7 +229,7 @@ describe('Forth', () => {
229229 xtest ( 'errors if there is only one value on the stack' , ( ) => {
230230 expect ( ( ) => {
231231 forth . evaluate ( '1 over' ) ;
232- } ) . toThrow ( new Error ( 'Stack empty ' ) ) ;
232+ } ) . toThrow ( new Error ( 'Only one value on the stack ' ) ) ;
233233 } ) ;
234234 } ) ;
235235
0 commit comments