Merge branch 'forth_test' into 'master'
forth: add test and fix solution See merge request slon/shad-go-private!75
This commit is contained in:
commit
46e4498e1c
1 changed files with 5 additions and 0 deletions
|
@ -244,6 +244,11 @@ var testCases = []testCase{
|
||||||
input: []string{": SWAP DUP Dup dup ;", "1 swap"},
|
input: []string{": SWAP DUP Dup dup ;", "1 swap"},
|
||||||
expected: []int{1, 1, 1, 1},
|
expected: []int{1, 1, 1, 1},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
description: "redefine of builtin after define user function on it",
|
||||||
|
input: []string{": foo dup ;", ": dup 1 ;", "2 foo"},
|
||||||
|
expected: []int{2, 2},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestEval(t *testing.T) {
|
func TestEval(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue