Class Summary | |
trait
|
Benchmark
extends AnyRef
object sort1 extends Sorter with Benchmark { def run = sort(List.range(1, 1000)) }
The > scala sort1 5 times.log
This will run the benchmark 5 times and log the execution times in
a file called |
Object Summary | |
object
|
SUnit
extends AnyRef
Unit testing methods in the spirit of JUnit framework. Use these classes like this: import scala.testing.SUnit import SUnit._ class MyTest(n: String) extends TestCase(n) { override def runTest() = n match { case "myTest1" => assertTrue(true) case "myTest2" => assertTrue("hello", false) } } val r = new TestResult() suite.run(r) for (tf <- r.failures()) { println(tf.toString()) }
The trait |
object
|
UnitTest
extends AnyRef
Some simple methods to support unit testing with assertions
to contain more JUnit style assertions which use Scala's features.
|