Skip to content

Commit 3702932

Browse files
authored
Merge pull request #22 from cgay/whitespace
Minor: Add double Space char in tests. Add whitespace between vector …
2 parents d471090 + 4427fc1 commit 3702932

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

tests/command-interface-test.dylan

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ define command simple three ($simple-root)
3838
end;
3939
end;
4040

41-
define test command-integration-test()
42-
43-
end;
44-
4541

4642
define test command-tokenizer-test()
4743
local
@@ -79,29 +75,29 @@ define test command-tokenizer-test()
7975
#(0));
8076
test-one(" a ",
8177
#(" ", "a", " "),
82-
#(#"whitespace",#"word",#"whitespace"),
78+
#(#"whitespace", #"word", #"whitespace"),
8379
#(0, 1, 2),
8480
#(0, 1, 2));
8581
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"),
8884
#(0, 1, 2, 3, 4),
8985
#(0, 1, 2, 3, 4));
9086
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"),
9389
#(0, 1, 2, 3, 4, 5, 6),
9490
#(0, 1, 2, 3, 4, 5, 6));
9591
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"),
9894
#(0, 2, 3, 5, 6),
9995
#(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));
105101
end;
106102

107103
define suite command-interface-test-suite()

0 commit comments

Comments
 (0)