]> gitweb.factorcode.org Git - factor.git/commitdiff
fix using, make sure article-only title sort works
authorDoug Coleman <erg@jobim.(none)>
Tue, 26 May 2009 17:01:28 +0000 (12:01 -0500)
committerDoug Coleman <erg@jobim.(none)>
Tue, 26 May 2009 17:01:28 +0000 (12:01 -0500)
basis/sorting/human/human.factor
basis/sorting/title/title-tests.factor

index 56de7f2f4832f68ca8f688f60c5d606bed53a37a..7487f559ed36b83000236c4b644f834ae0e4a73d 100644 (file)
@@ -1,6 +1,7 @@
 ! Copyright (C) 2008 Doug Coleman, Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: math.parser peg.ebnf sorting.functor ;
+USING: accessors kernel math math.order math.parser peg.ebnf
+sequences sorting.functor ;
 IN: sorting.human
 
 : find-numbers ( string -- seq )
index 65a58e463d8437b9de7029927baecaedb9cbc04d..1e978838c58db133ab2fec1f718f8d5e5815d25e 100644 (file)
@@ -8,6 +8,9 @@ IN: sorting.title.tests
         "The Beatles"
         "A river runs through it"
         "Another"
+        "The"
+        "A"
+        "Los"
         "la vida loca"
         "Basketball"
         "racquetball"
@@ -21,6 +24,7 @@ IN: sorting.title.tests
     } ;
 [
     {
+        "A"
         "Another"
         "Basketball"
         "The Beatles"
@@ -29,10 +33,12 @@ IN: sorting.title.tests
         "for the horde"
         "Los Fujis"
         "los Fujis"
+        "Los"
         "of mice and men"
         "on belay"
         "racquetball"
         "A river runs through it"
+        "The"
         "la vida loca"
     }
 ] [