Skip to content

Commit

Permalink
test cs sortlist unique parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed May 31, 2024
1 parent eedcf99 commit a5e644b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,10 @@ namespace
{"testval = \"charlie bravo alpha\"; sortlist $testval a b [<s $a $b]", "alpha bravo charlie"},
{"testval = \"3 2 1\"; sortlist $testval a b [< $a $b]", "1 2 3"},
{"testval = \"3.0 2.0 1.0\"; sortlist $testval a b [<f $a $b]", "1.0 2.0 3.0"},
//test unique sortlist
{"testval = \"charlie charlie bravo alpha\"; sortlist $testval a b [<s $a $b] [=s $a $b]", "alpha bravo charlie"},
{"testval = \"3 3 2 1\"; sortlist $testval a b [< $a $b] [= $a $b]", "1 2 3"},
{"testval = \"3.0 3.0 2.0 1.0\"; sortlist $testval a b [<f $a $b] [=f $a $b]", "1.0 2.0 3.0"},
{"sortlist", ""},
};

Expand Down

0 comments on commit a5e644b

Please sign in to comment.