Squeak Class Documentation category index | class index  
 
LargeIntegersTest
  category: VMConstruction-Plugins
  superclass: Object
  subclasses:

Some tests for LargeIntegersPlugin functions and their binding to Integer methods.

Evaluate...
without module:
LargeIntegersTest doItInFile: '/tmp/withoutModule.txt' withModule: false.
with module:
LargeIntegersTest doItInFile: '/tmp/withModule.txt' withModule: true.
.
After these computations both files have to be the same contents!

Speed:
[LargeIntegersTest bigFactorial: 3 depth: 3] timeToRun
or
[1000 factorial] timeToRun

instance methods
  accessing
  stream
stream:

  as yet unclassified
  computeOp:with:with:
createTestData
test

class methods
  private
  checkIfCModuleExists
doItOn:withModule:
moduleName

  user interface
  bigFactorial:depth:
doItInFile:withModule:
getModuleName

instance methods
  accessing top  
 

stream


 

stream:


  as yet unclassified top  
 

computeOp:with:with:


 

createTestData


 

test


class methods
  private top  
 

checkIfCModuleExists

If primitive fails, module isn't reachable.


 

doItOn:withModule:

Make LargeIntegers computations with logging onto stream.


 

moduleName


  user interface top  
 

bigFactorial:depth:

Computationally very expensive!


 

doItInFile:withModule:

Stores output in a new file named 'filename'.
Param 'withModuleFlag' has to be true, if there is a reachable module, false otherwise.


 

getModuleName

self getModuleName