new type LinkedList, preliminary implementation
This commit is contained in:
+15
-1
@@ -57,10 +57,24 @@ func TestListParser(t *testing.T) {
|
||||
/* 41 */ {`[0] << $([1,2,3,4])`, kern.NewListA(int64(0), int64(1), int64(2), int64(3), int64(4)), nil},
|
||||
/* 42 */ {`L=[]; [1] >> L; L`, kern.NewListA(), nil},
|
||||
/* 43 */ {`L=[]; L << [1]; L`, kern.NewListA(), nil},
|
||||
// /* 44 */ {`[0,1,2,3,4][2:3]`, kern.NewListA(int64(20)), nil},
|
||||
}
|
||||
|
||||
// t.Setenv("EXPR_PATH", ".")
|
||||
|
||||
// runTestSuiteSpec(t, section, inputs, 42)
|
||||
// runTestSuiteSpec(t, section, inputs, 44)
|
||||
runTestSuite(t, section, inputs)
|
||||
}
|
||||
|
||||
func TestLinkedListParser(t *testing.T) {
|
||||
section := "Linked-List"
|
||||
|
||||
inputs := []inputType{
|
||||
/* 1 */ {`[<1,2>]`, kern.NewLinkedListA(int64(1), int64(2)), nil},
|
||||
}
|
||||
|
||||
// t.Setenv("EXPR_PATH", ".")
|
||||
|
||||
// runTestSuiteSpec(t, section, inputs, 44)
|
||||
runTestSuite(t, section, inputs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user