diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-11-29 13:04:33 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-11-29 13:14:14 +1000 |
commit | 4fba067fc845551041b8f32b82268ecdd5d6f757 (patch) | |
tree | fad9cb4f05be35ac5bd214bcc4b8418eb27c6b09 /test/junit/scala/tools/nsc/interpreter/CompletionTest.scala | |
parent | 2e2176edc40c20dd2a3026faafc47d4aeb0a429d (diff) | |
parent | 57290a1c72d4565892f3595d9d8c3fba1086ec6b (diff) | |
download | scala-4fba067fc845551041b8f32b82268ecdd5d6f757.tar.gz scala-4fba067fc845551041b8f32b82268ecdd5d6f757.tar.bz2 scala-4fba067fc845551041b8f32b82268ecdd5d6f757.zip |
Merge commit '57290a1' into topic/merge-2.11.x-to-2.12.x-20161129
Conflicts:
spec/_layouts/default.yml
test/junit/scala/tools/nsc/interpreter/CompletionTest.scala
Fixes scala/scala-dev#272
Diffstat (limited to 'test/junit/scala/tools/nsc/interpreter/CompletionTest.scala')
-rw-r--r-- | test/junit/scala/tools/nsc/interpreter/CompletionTest.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala b/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala index 1233e8b1cc..a216b319a8 100644 --- a/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala +++ b/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala @@ -185,6 +185,14 @@ class CompletionTest { checkExact(completer, "p1.p2.p3.Ping.Po")("Pong") } + @Test + def performanceOfLenientMatch(): Unit = { + val intp = newIMain() + val completer = new PresentationCompilerCompleter(intp) + val ident: String = "thisIsAReallyLongMethodNameWithManyManyManyManyChunks" + checkExact(completer, s"($ident: Int) => tia")(ident) + } + def checkExact(completer: PresentationCompilerCompleter, before: String, after: String = "")(expected: String*): Unit = { assertEquals(expected.toSet, completer.complete(before, after).candidates.toSet) } |