]> gitweb.factorcode.org Git - factor.git/blob - basis/sorting/human/human-tests.factor
c19346579adefdb37bd5187c37b0738ad42affa6
[factor.git] / basis / sorting / human / human-tests.factor
1 USING: sorting.human tools.test sorting.slots sorting ;
2
3 { { "x1y" "x2" "x10y" } }
4 [ { "x1y" "x10y" "x2" } { human<=> } sort-by ] unit-test
5
6 { { "4dup" "nip" } }
7 [ { "4dup" "nip" } [ human<=> ] sort ] unit-test
8
9 { { "4dup" "nip" } }
10 [ { "nip" "4dup" } [ human<=> ] sort ] unit-test
11
12 { { "4dup" "4nip" "5drop" "nip" "nip2" "nipd" } }
13 [ { "nip" "4dup" "4nip" "5drop" "nip2" "nipd" } [ human<=> ] sort ] unit-test
14
15
16 { { "Abc" "abc" "def" "gh" } }
17 [ { "abc" "Abc" "def" "gh" } [ human<=> ] sort ] unit-test
18
19 { { "abc" "Abc" "def" "gh" } }
20 [ { "abc" "Abc" "def" "gh" } [ humani<=> ] sort ] unit-test