]> gitweb.factorcode.org Git - factor.git/blobdiff - core/classes/mixin/mixin-tests.factor
classes: use check-instance in a few places, to remove duplication.
[factor.git] / core / classes / mixin / mixin-tests.factor
index 83892405679a40e24c855704526bf094d33441b3..c8e48888d86528a13768fc37edc330c351c0ba76 100644 (file)
@@ -125,7 +125,7 @@ SYMBOL: a-symbol
     [
         \ a-symbol \ silly-mixin add-mixin-instance
     ] with-compilation-unit
-] [ not-a-class? ] must-fail-with
+] [ not-an-instance? ] must-fail-with
 
 SYMBOL: not-a-mixin
 TUPLE: a-class ;
@@ -134,7 +134,7 @@ TUPLE: a-class ;
     [
         \ a-class \ not-a-mixin add-mixin-instance
     ] with-compilation-unit
-] [ not-a-mixin-class? ] must-fail-with
+] [ not-an-instance? ] must-fail-with
 
 ! Changing a mixin member's metaclass should not remove it from the mixin
 MIXIN: metaclass-change-mixin