Skip to content

Minor: Add double Space char in tests. Add whitespace between vector … #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions tests/command-interface-test.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ define command simple three ($simple-root)
end;
end;

define test command-integration-test()

end;


define test command-tokenizer-test()
local
Expand Down Expand Up @@ -79,29 +75,29 @@ define test command-tokenizer-test()
#(0));
test-one(" a ",
#(" ", "a", " "),
#(#"whitespace",#"word",#"whitespace"),
#(#"whitespace", #"word", #"whitespace"),
#(0, 1, 2),
#(0, 1, 2));
test-one("a b c",
#("a"," ","b"," ","c"),
#(#"word",#"whitespace",#"word",#"whitespace",#"word"),
#("a", " ", "b", " ", "c"),
#(#"word", #"whitespace", #"word", #"whitespace", #"word"),
#(0, 1, 2, 3, 4),
#(0, 1, 2, 3, 4));
test-one(" a b c ",
#(" ","a"," ","b"," ","c"," "),
#(#"whitespace",#"word",#"whitespace",#"word",#"whitespace",#"word",#"whitespace"),
#(" ", "a", " ", "b", " ", "c", " "),
#(#"whitespace", #"word", #"whitespace", #"word", #"whitespace", #"word", #"whitespace"),
#(0, 1, 2, 3, 4, 5, 6),
#(0, 1, 2, 3, 4, 5, 6));
test-one("aa bb cc",
#("aa"," ","bb"," ","cc"),
#(#"word",#"whitespace",#"word",#"whitespace",#"word"),
#("aa", " ", "bb", " ", "cc"),
#(#"word", #"whitespace", #"word", #"whitespace", #"word"),
#(0, 2, 3, 5, 6),
#(1, 2, 4, 5, 7));
test-one(" aa bb cc ",
#(" ","aa"," ","bb"," ","cc"," "),
#(#"whitespace",#"word",#"whitespace",#"word",#"whitespace",#"word",#"whitespace"),
#(0, 1, 3, 4, 6, 7, 9),
#(0, 2, 3, 5, 6, 8, 9));
test-one(" aa bb cc ", // double space after bb
#(" ", "aa", " ", "bb", " ", "cc", " "),
#(#"whitespace", #"word", #"whitespace", #"word", #"whitespace", #"word", #"whitespace"),
#(0, 1, 3, 4, 6, 8, 10),
#(0, 2, 3, 5, 7, 9, 10));
end;

define suite command-interface-test-suite()
Expand Down