@@ -38,10 +38,6 @@ define command simple three ($simple-root)
38
38
end ;
39
39
end ;
40
40
41
- define test command-integration-test ()
42
-
43
- end ;
44
-
45
41
46
42
define test command-tokenizer-test ()
47
43
local
@@ -79,29 +75,29 @@ define test command-tokenizer-test()
79
75
#(0 ));
80
76
test-one(" a " ,
81
77
#(" " , "a" , " " ),
82
- #(# "whitespace" ,# "word" ,# "whitespace" ),
78
+ #(# "whitespace" , # "word" , # "whitespace" ),
83
79
#(0 , 1 , 2 ),
84
80
#(0 , 1 , 2 ));
85
81
test-one("a b c" ,
86
- #("a" ," " ,"b" ," " ,"c" ),
87
- #(# "word" ,# "whitespace" ,# "word" ,# "whitespace" ,# "word" ),
82
+ #("a" , " " , "b" , " " , "c" ),
83
+ #(# "word" , # "whitespace" , # "word" , # "whitespace" , # "word" ),
88
84
#(0 , 1 , 2 , 3 , 4 ),
89
85
#(0 , 1 , 2 , 3 , 4 ));
90
86
test-one(" a b c " ,
91
- #(" " ,"a" ," " ,"b" ," " ,"c" ," " ),
92
- #(# "whitespace" ,# "word" ,# "whitespace" ,# "word" ,# "whitespace" ,# "word" ,# "whitespace" ),
87
+ #(" " , "a" , " " , "b" , " " , "c" , " " ),
88
+ #(# "whitespace" , # "word" , # "whitespace" , # "word" , # "whitespace" , # "word" , # "whitespace" ),
93
89
#(0 , 1 , 2 , 3 , 4 , 5 , 6 ),
94
90
#(0 , 1 , 2 , 3 , 4 , 5 , 6 ));
95
91
test-one("aa bb cc" ,
96
- #("aa" ," " ,"bb" ," " ,"cc" ),
97
- #(# "word" ,# "whitespace" ,# "word" ,# "whitespace" ,# "word" ),
92
+ #("aa" , " " , "bb" , " " , "cc" ),
93
+ #(# "word" , # "whitespace" , # "word" , # "whitespace" , # "word" ),
98
94
#(0 , 2 , 3 , 5 , 6 ),
99
95
#(1 , 2 , 4 , 5 , 7 ));
100
- test-one(" aa bb cc " ,
101
- #(" " ,"aa" ," " ,"bb" ," " , "cc" ," " ),
102
- #(# "whitespace" ,# "word" ,# "whitespace" ,# "word" ,# "whitespace" ,# "word" ,# "whitespace" ),
103
- #(0 , 1 , 3 , 4 , 6 , 7 , 9 ),
104
- #(0 , 2 , 3 , 5 , 6 , 8 , 9 ));
96
+ test-one(" aa bb cc " , // double space after bb
97
+ #(" " , "aa" , " " , "bb" , " " , "cc" , " " ),
98
+ #(# "whitespace" , # "word" , # "whitespace" , # "word" , # "whitespace" , # "word" , # "whitespace" ),
99
+ #(0 , 1 , 3 , 4 , 6 , 8 , 10 ),
100
+ #(0 , 2 , 3 , 5 , 7 , 9 , 10 ));
105
101
end ;
106
102
107
103
define suite command-interface-test-suite ()
0 commit comments