summaryrefslogtreecommitdiff
path: root/test/files/neg/bug1183.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-05-19 20:06:19 +0000
committerPaul Phillips <paulp@improving.org>2011-05-19 20:06:19 +0000
commit4afa092314487c0095ff9fd5756d05340f6150b0 (patch)
treed3cf421e67192041f78858fe10735505f4891b3c /test/files/neg/bug1183.scala
parent7595671ec3929aa4ac978826521300a900250214 (diff)
downloadscala-4afa092314487c0095ff9fd5756d05340f6150b0.tar.gz
scala-4afa092314487c0095ff9fd5756d05340f6150b0.tar.bz2
scala-4afa092314487c0095ff9fd5756d05340f6150b0.zip
Removes SUnit (long deprecated!) from the stand...
Removes SUnit (long deprecated!) from the standard library. the relatively small number of partest tests in Scala's suite that were still using SUnit now either just use regular asserts, or they print stuff that partest checks with a .check file. Also fixed some bad indentation, removed ancient useless-looking commented-out code, etc. Contributed by Seth Tisue (way to go seth) no review.
Diffstat (limited to 'test/files/neg/bug1183.scala')
-rw-r--r--test/files/neg/bug1183.scala14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/files/neg/bug1183.scala b/test/files/neg/bug1183.scala
index a845126488..23868ab401 100644
--- a/test/files/neg/bug1183.scala
+++ b/test/files/neg/bug1183.scala
@@ -1,10 +1,6 @@
-import scala.testing.SUnit._
+// bug 1183 from in the old tracker, not in Trac
-object Test extends TestConsoleMain {
-
- def suite = new TestSuite(
- new Test717
- )
+object Test {
class Foo(j:Int) {
object Baz
@@ -14,14 +10,14 @@ object Test extends TestConsoleMain {
}
- class Test717 extends TestCase("#717 test path of case classes") {
+ class Test717 {
val foo1 = new Foo(1)
- override def runTest() = {
+ def runTest() = {
val res = (foo1.Bar(2):Any) match {
case foo1.Bar(2) => true // (1)
}
- assertTrue("ok", res);
+ require(res)
}
}