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

test[clari8] index



You can evaluate the following expression to load the code in this page
SwikiCodeRobot @> #testCari8Index

Documentation

The framework is hosted by U8 service, under coco8 libraries as Clarifai framework.

Tests


Index chunks

"Evaluating first chunk of the test set"

(Smalltalk includesKey: #Smalltalk) ifFalse: [
    self print: 'Require s8 execution environment.'.
    self abort
].
(Smalltalk includesKey: #NSObject) ifFalse: [
    self print: 'Require coco8 platform.'.
    self abort
].
Smalltalk nativeObjectAt: #Clarifai ifAbsent: [
    self print: 'Require Clarifai framework.'.
    self abort
].

"Ensure the Clarifai.framework is bound to the system"
[ Clarifai sharedInstance isNil ifTrue: [ self error: 'Canīt access shared instance' ]
] on: Error do: [:error|
	self print: 'Clarifai.framework must be bound to application to run tests'.
	self abort
].