]> gitweb.factorcode.org Git - factor.git/commitdiff
Adding tests to lists
authorJames Cash <james.nvc@gmail.com>
Thu, 5 Jun 2008 18:32:03 +0000 (14:32 -0400)
committerJames Cash <james.nvc@gmail.com>
Thu, 5 Jun 2008 18:32:03 +0000 (14:32 -0400)
extra/lists/lists-tests.factor

index 1f86379faba2bdeef6f1077cac0a25bad719125d..cdc51b76e8378a63e4d0ea1c3a91bda65aaaf6f0 100644 (file)
@@ -57,6 +57,10 @@ IN: lists.tests
     { 1 2 3 4 5 } seq>list lreverse list>seq
 ] unit-test
     
+{ 5 } [
+    { 1 2 3 4 5 } seq>list llength
+] unit-test
+    
 { { 3 4 { 5 6 { 7 } } } } [
   { 1 2 { 3 4 { 5 } } } seq>cons [ atom? ] [ 2 + ] traverse cons>seq
 ] unit-test
\ No newline at end of file