From 9bc328b50d07fa48fd73bf719d1004315ba429b1 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sun, 17 Jan 2010 00:30:36 +1300 Subject: [PATCH] slots: fix declaration unit test --- core/slots/slots-tests.factor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/slots/slots-tests.factor b/core/slots/slots-tests.factor index 957b525cb3..3548e22c33 100644 --- a/core/slots/slots-tests.factor +++ b/core/slots/slots-tests.factor @@ -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 ;