Skip to content

Commit

Permalink
Merge pull request #10729 from som-snytt/audit/session-test
Browse files Browse the repository at this point in the history
Remove obsolete tests [ci: last-only]
  • Loading branch information
SethTisue committed Mar 27, 2024
2 parents 4e03eb5 + 9203969 commit 0630f6e
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 115 deletions.
Empty file modified test/files/run/repl-paste-6.check 100755 → 100644
Empty file.
8 changes: 0 additions & 8 deletions test/files/run/repl-paste-parse.check

This file was deleted.

19 changes: 0 additions & 19 deletions test/files/run/repl-paste-parse.scala

This file was deleted.

1 change: 0 additions & 1 deletion test/files/run/repl-paste-parse.script

This file was deleted.

5 changes: 0 additions & 5 deletions test/files/run/t7805-repl-i.check

This file was deleted.

43 changes: 0 additions & 43 deletions test/files/run/t7805-repl-i.scala

This file was deleted.

1 change: 0 additions & 1 deletion test/files/run/t7805-repl-i.script

This file was deleted.

38 changes: 0 additions & 38 deletions test/files/run/t9102.scala
Expand Up @@ -29,43 +29,6 @@ object Test extends App {
}
}

/* Session tests without special init code should reside in simple script files.
* Also, provide filters such as for `(bound to C@74f7d1d2)`.
import scala.tools.partest.SessionTest
object Test extends SessionTest {
//Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_40).
def session =
s"""|Type in expressions to have them evaluated.
|Type :help for more information.
|
|scala> import reflect.runtime._, universe._
|import reflect.runtime._
|import universe._
|
|scala> class C { def f(i: Int, j: => Int) = i + j }
|defined class C
|
|scala> typeOf[C].member(TermName("f"))
|res0: reflect.runtime.universe.Symbol = method f
|
|scala> .asMethod
|res1: reflect.runtime.universe.MethodSymbol = method f
|
|scala> currentMirror reflect (new C)
|res2: reflect.runtime.universe.InstanceMirror = instance mirror for C@74f7d1d2
|
|scala> res2 reflectMethod res1
|res3: reflect.runtime.universe.MethodMirror = method mirror for def f(i: scala.Int,j: => scala.Int): scala.Int (bound to C@74f7d1d2)
|
|scala> res3(2,3)
|res4: Any = 5
|
|scala> :quit"""
}
*/

/* was:
scala> res3(2,3)
java.lang.IllegalArgumentException
Expand All @@ -78,4 +41,3 @@ java.lang.IllegalArgumentException
at scala.reflect.runtime.JavaMirrors$JavaMirror$JavaTransformingMethodMirror.apply(JavaMirrors.scala:436)
... 33 elided
*/

0 comments on commit 0630f6e

Please sign in to comment.