[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[s8] IKO and responds tests



" isKindOf:/respondsTo: with undefined receiver"
([ MyUndefinedGlobal isKindOf: Point ]
on: Error do: [true]) ifTrue: [
   self print: '#isKindOf: test failed'
]!
([ MyUndefinedGlobal respondsTo: #yourself ]
on: Error do: [true]) ifTrue: [
   self print: '#respondsTo: test failed'
]!

"IKO with nil argument"
(5@3 isKindOf: nil) ifTrue: [ self error: 'Wrong result' ]