diff --git a/extra/constructors/constructors-tests.factor b/extra/constructors/constructors-tests.factor index fef3150f6e..0ad83a6c5f 100644 --- a/extra/constructors/constructors-tests.factor +++ b/extra/constructors/constructors-tests.factor @@ -43,7 +43,17 @@ CONSTRUCTOR: ct4 ( a b c d -- obj ) [ 4 ] [ 0 0 0 0 a>> ] unit-test [ - """IN: constructors.tests + """USE: constructors +IN: constructors.tests +TUPLE: foo a b ; +CONSTRUCTOR: foo ( a a -- obj ) ;""" eval( -- ) +] [ + error>> repeated-constructor-parameters? +] must-fail-with + +[ + """USE: constructors +IN: constructors.tests TUPLE: foo a b ; CONSTRUCTOR: foo ( a c -- obj ) ;""" eval( -- ) ] [