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

test[libc] index

SwikiCodeRobot @> #testLibcIndex

Code

"Check LibC is actually included in the image"
(Smalltalk includesKey: #LibC) ifFalse: [
    self error: 'Missing LibC implementation'
].

(LibC current isdigit: $4 asciiValue) = true ifFalse: [
    self error: 'Result should be true'
].

self print: 'Ok - LibC API installed and working'

References