diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-03 13:22:00 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-03 13:22:00 -0800 |
commit | 1d75c232ffa361256164f659929902aa16ef621c (patch) | |
tree | 6b5bb177da0c69e0ad9d66de457e62b7bc4862f2 /fish_tests.cpp | |
parent | cbcc439e037ae07d3408f677a07f67002f5d4ad8 (diff) |
Teach builtin_test about the special precedence rules in IEEE 1003.1
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index 07ad1dc7..33b2fdb7 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -936,6 +936,10 @@ static void test_test() /* This crashed */ assert(run_test_test(1, L"1 = 1 -a = 1")); + + /* Make sure we can treat -S as a parameter instead of an operator. https://github.com/fish-shell/fish-shell/issues/601 */ + assert(run_test_test(0, L"-S = -S")); + assert(run_test_test(1, L"! ! ! A")); } /** Testing colors */ |