diff options
Diffstat (limited to 'test/disabled/presentation')
3 files changed, 15 insertions, 15 deletions
diff --git a/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala b/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala index 10e69c58f0..2295d06b9f 100644 --- a/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala +++ b/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala @@ -1,5 +1,5 @@ object Ranges { // (1 to 10). // (1) this works as expected - + (1 to 10).toS /*!*/ // (2) this fails }
\ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala b/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala index 7300e5fd7d..917fd43257 100644 --- a/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala +++ b/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala @@ -1,23 +1,23 @@ /** * Presentation compiler returns the wrong answer for this test. - * + * * Below is the current result of running this test: - * + * * Mircos-iMac:test mirco$ ./partest files/presentation/ticket-1000545 --show-log | sed 's/< //' * Testing individual files * testing: [...]/files/presentation/ticket-1000545 [FAILED] * 1,8d0 * reload: CompletionFails.scala - * + * * askTypeCompletion at CompletionFails.scala(2,19) * ================================================================================ * [response] aksTypeCompletion at (2,19) * retrieved 1 members * TypeMember(method <clinit>,()Unit,false,false,<none>) * ================================================================================ - * + * * 1 of 1 tests failed (elapsed time: 00:00:05) - * + * * @note The expected result was the list of static methods for class @see java.io.Console */ object CompletionFails { diff --git a/test/disabled/presentation/simple-tests/src/Tester.scala b/test/disabled/presentation/simple-tests/src/Tester.scala index cb62187514..b039470ae7 100644 --- a/test/disabled/presentation/simple-tests/src/Tester.scala +++ b/test/disabled/presentation/simple-tests/src/Tester.scala @@ -38,7 +38,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { def askTypeCompletion(pos: Position) = askAndListen("type at", pos, compiler.askTypeCompletion) def askScopeCompletion(pos: Position) = askAndListen("type at", pos, compiler.askScopeCompletion) - val rand = new java.util.Random() + val rand = new java.util.Random() private def randomInverse(n: Int) = n / (rand.nextInt(n) + 1) @@ -71,7 +71,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { private var pos = start private var deleted: List[Char] = List() - override def toString = + override def toString = "In "+inputs(sfidx)+" at "+start+" take "+nchars+" to "+ (if (toLeft) "left" else "right") @@ -90,7 +90,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { if (pos > 0 && pos <= inputs(sfidx).length) { pos -= 1 deleteOne() - } + } } else { if (pos < inputs(sfidx).length) { deleteOne() @@ -98,7 +98,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { } } } - + def insertAll() { for (chr <- if (toLeft) deleted else deleted.reverse) { val sf = inputs(sfidx) @@ -138,7 +138,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { val changes = Vector.fill(/**/randomChangesPerBatch()) { /**/ new Change(sfidx, randomPositionIn(inputs(sfidx)), randomNumChars(), rand.nextBoolean()) - } + } doTest(sfidx, changes, testPositions, otherTest) match { case Some(errortrace) => println(errortrace) @@ -151,7 +151,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { def doTest(sfidx: Int, changes: Seq[Change], testPositions: Seq[Int], otherTest: () => Unit): Option[ErrorTrace] = { print("new round with "+changes.length+" changes:") changes foreach (_.deleteAll()) - otherTest() + otherTest() def errorCount() = compiler.ask(() => reporter.ERROR.count) // println("\nhalf test round: "+errorCount()) changes.view.reverse foreach (_.insertAll()) @@ -159,13 +159,13 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { println("done test round: "+errorCount()) if (errorCount() != 0) Some(ErrorTrace(sfidx, changes, reporter.infos, inputs(sfidx).content)) - else + else None } case class ErrorTrace( sfidx: Int, changes: Seq[Change], infos: collection.Set[reporter.Info], content: Array[Char]) { - override def toString = + override def toString = "Sourcefile: "+inputs(sfidx)+ "\nChanges:\n "+changes.mkString("\n ")+ "\nErrors:\n "+infos.mkString("\n ")+ @@ -201,4 +201,4 @@ object Tester { new Tester(args(0).toInt, files, settings).run() sys.exit(0) } -} +} |