Permalink
Browse files

Issue #23 - Classifier look for .valid? in class without inheritance …

…- add regression test script
  • Loading branch information...
birchb1024 committed Aug 30, 2018
1 parent caf8a5c commit 780d28c88c1e9ee8ba8b117acaf9f44675ea8f73
Showing with 18 additions and 0 deletions.
  1. +18 −0 test/acceptance/test-classify.g
@@ -0,0 +1,18 @@
include "lib/classify.g"
#
# Make sure derived class .valid? is not picked up by classifier
#
class A(String)
def .valid?(o)
is-instance? o String
class B(A)
var foo 'a string'
classify A foo
assert (member? A foo!classes)
assert (not (member? B foo!classes))

0 comments on commit 780d28c

Please sign in to comment.