[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
test[libc] Character Handling
SwikiCodeRobot @> #testLibcCharacterHandling
"Classification of Characters"
(LibC current isdigit: $4 asciiValue) ifFalse: [ self error: 'Wrong result 4' ].
(LibC current isalpha: $e asciiValue) ifFalse: [ self error: 'Wrong result e' ].
(LibC current islower: $a asciiValue) ifFalse: [ self error: 'Wrong result a' ].
(LibC current isupper: $A asciiValue) ifFalse: [ self error: 'Wrong result A' ].