Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / extra / multi-methods / tests / topological-sort.factor
blobf1618374ef0ffbc9f04400b3d4f7345384f55fbd
1 USING: kernel multi-methods tools.test math arrays sequences
2 math.order ;
3 IN: multi-methods.tests
5 [ { 1 2 3 4 5 6 } ] [
6     { 6 4 5 1 3 2 } [ <=> ] topological-sort
7 ] unit-test
9 [ +lt+ ] [
10     { fixnum array } { number sequence } classes<
11 ] unit-test
13 [ +eq+ ] [
14     { number sequence } { number sequence } classes<
15 ] unit-test
17 [ +gt+ ] [
18     { object object } { number sequence } classes<
19 ] unit-test