]> gitweb.factorcode.org Git - factor.git/commitdiff
slots: fix declaration unit test
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 16 Jan 2010 11:30:36 +0000 (00:30 +1300)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 16 Jan 2010 11:30:36 +0000 (00:30 +1300)
core/slots/slots-tests.factor

index 957b525cb3115043e8fc972ca5affe6073066f31..3548e22c336428b7cea07841ef50874fc6fa3f17 100644 (file)
@@ -1,5 +1,5 @@
 USING: math accessors slots strings generic.single kernel
-tools.test generic words parser eval math.functions ;
+tools.test generic words parser eval math.functions arrays ;
 IN: slots.tests
 
 TUPLE: r/w-test foo ;
@@ -8,9 +8,9 @@ TUPLE: r/o-test { foo read-only } ;
 
 [ r/o-test new 123 >>foo ] [ no-method? ] must-fail-with
 
-TUPLE: decl-test { foo integer } ;
+TUPLE: decl-test { foo array } ;
 
-[ decl-test new 1.0 >>foo ] [ bad-slot-value? ] must-fail-with
+[ decl-test new "" >>foo ] [ bad-slot-value? ] must-fail-with
 
 TUPLE: hello length ;