From 14414226a9cfaf4ff725434adaf3f1773124d014 Mon Sep 17 00:00:00 2001 From: buraq Date: Wed, 6 Oct 2004 16:17:54 +0000 Subject: added convenience mathod --- sources/scala/testing/SUnit.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sources') diff --git a/sources/scala/testing/SUnit.scala b/sources/scala/testing/SUnit.scala index a8bd19b34d..3bb5ed04c5 100644 --- a/sources/scala/testing/SUnit.scala +++ b/sources/scala/testing/SUnit.scala @@ -102,6 +102,10 @@ object SUnit { /** a TestSuite runs a composite of test cases */ class TestSuite(tests:Test*) with Test { + + def this(names:Seq[String], constr:String=>Test) = + this((names.toList map constr):_*); + val buf = new scala.collection.mutable.ArrayBuffer[Test](); -- cgit v1.2.3