Skip to content

Commit

Permalink
Test completion of char literal
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0hei authored and som-snytt committed Mar 4, 2018
1 parent 034c0be commit 45e53da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/junit/scala/tools/nsc/interpreter/CompletionTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class CompletionTest {

// Output is sorted
assertEquals(List("prefix_aaa", "prefix_nnn", "prefix_zzz"), completer.complete( """class C { def prefix_nnn = 0; def prefix_zzz = 0; def prefix_aaa = 0; prefix_""").candidates)

// Enable implicits to check completion enrichment
assert(completer.complete("""'c'.""").candidates.contains("toUpper"))
assert(completer.complete("""val c = 'c'; c.""").candidates.contains("toUpper"))
}

@Test
Expand Down

0 comments on commit 45e53da

Please sign in to comment.