summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/testing/SUnit.scala4
1 files changed, 4 insertions, 0 deletions
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]();