]> gitweb.factorcode.org Git - factor.git/commitdiff
math.combinatorics: fix unit test and help lint
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 8 May 2009 23:00:53 +0000 (18:00 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 8 May 2009 23:00:53 +0000 (18:00 -0500)
basis/math/combinatorics/combinatorics-docs.factor
basis/math/combinatorics/combinatorics-tests.factor

index 7f40969b95c169fc4a785accd9b874bee908cf59..041539c9815c2aaa82611688731e7f0df1ae3239 100644 (file)
@@ -64,7 +64,7 @@ HELP: combination
 { $description "Outputs the " { $snippet "mth" } " lexicographical combination of " { $snippet "seq" } " choosing " { $snippet "k" } " elements." }
 { $notes "Combinations are 0-based and a bounds error will be thrown if " { $snippet "m" } " is larger than " { $snippet "seq length k nCk" } "." }
 { $examples
-    { $example "USING: math.combinatorics prettyprint ;"
+    { $example "USING: math.combinatorics sequences prettyprint ;"
         "6 7 iota 4 combination ." "{ 0 1 3 6 }" }
     { $example "USING: math.combinatorics prettyprint ;"
         "0 { \"a\" \"b\" \"c\" \"d\" } 2 combination ." "{ \"a\" \"b\" }" }
index 1bc4bbc825773822a31e219a0d11153e33cfc570..ca6ec9cb53c02d0d5722d8bf70eae70bfd3cd4b9 100644 (file)
@@ -1,4 +1,4 @@
-USING: math.combinatorics math.combinatorics.private tools.test ;
+USING: math.combinatorics math.combinatorics.private tools.test sequences ;
 IN: math.combinatorics.tests
 
 [ 1 ] [ 0 factorial ] unit-test