#.require. jvm namespace Test class Test def main is shared # string lits make for good tests assert 'aoeu' inherits String # .warning. always # Another Mono bug. New 1.2.6 (or maybe 1.2.5): https://bugzilla.novell.com/show_bug.cgi?id=350977 assert 'aeou' inherits Object # .warning. always assert not ('aoeu' inherits Void) # .warning. never assert not ('aoeu' inherits Integer) # .warning. never # primitives assert 5 inherits int # .warning. always assert 5 inherits Object # .warning. always assert not (5 inherits String) # .warning. never assert 5 inherits Integer # .warning. never assert true inherits bool # .warning. always assert true inherits Object # .warning. always assert not (true inherits String) # .warning. never assert true inherits Boolean # .warning. never # try a method assert System.getenv('PATH') inherits Object # .warning. can just check for not nil assert System.getenv('PATH') inherits String # .warning. can just check for not nil assert not (System.getenv('PATH') inherits Thread) # .warning. never