summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2007-03-22 03:28:30 +0000
committerBurak Emir <emir@epfl.ch>2007-03-22 03:28:30 +0000
commitc61121a813abaace6e739a6f02e4c85b186f95a1 (patch)
tree74e4b0b57269397e888424346f674efcd933efc4 /src/library
parent8e890c848ff68e69342d0f340df40f926857c861 (diff)
downloadscala-c61121a813abaace6e739a6f02e4c85b186f95a1.tar.gz
scala-c61121a813abaace6e739a6f02e4c85b186f95a1.tar.bz2
scala-c61121a813abaace6e739a6f02e4c85b186f95a1.zip
new pattern matching algo
removed "removeoption" changed SUnit and some tests added useful debug msg in typer
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/testing/SUnit.scala10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/library/scala/testing/SUnit.scala b/src/library/scala/testing/SUnit.scala
index 87c8fee0e1..07a7fa0d1b 100644
--- a/src/library/scala/testing/SUnit.scala
+++ b/src/library/scala/testing/SUnit.scala
@@ -70,11 +70,9 @@ object SUnit {
*
* @param name ...
*/
- class TestCase(val name: String) extends Test with Assert {
+ abstract class TestCase(val name: String) extends Test with Assert {
- protected def createResult() = new TestResult()
-
- protected def runTest(): Unit = {}
+ protected def runTest(): Unit
def run(r: TestResult): Unit =
try {
@@ -83,8 +81,6 @@ object SUnit {
case t:Throwable => r.addFailure(this, t)
}
- def run(): Unit = run(createResult())
-
def setUp() = {}
def tearDown() = {}
@@ -125,7 +121,7 @@ object SUnit {
class TestSuite(tests:Test*) extends Test {
def this(names: Seq[String], constr: String => Test) =
- this((names.toList map constr):_*)
+ this((names map constr):_*)
val buf = new ArrayBuffer[Test]()