diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-09-03 09:38:36 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-09-08 21:37:34 +0200 |
commit | 861ad72b59c5ea7856b2853c092aaeb15453caea (patch) | |
tree | cb8b42bcc3f137f3c150a570ea257142a866e574 /test | |
parent | 7655a70489f565a5a7a165f893b4a1e44c3cb2b8 (diff) | |
download | scala-861ad72b59c5ea7856b2853c092aaeb15453caea.tar.gz scala-861ad72b59c5ea7856b2853c092aaeb15453caea.tar.bz2 scala-861ad72b59c5ea7856b2853c092aaeb15453caea.zip |
Address PR feedback, fix MultiChoiceSetting.contains
Diffstat (limited to 'test')
-rw-r--r-- | test/junit/scala/tools/nsc/settings/SettingsTest.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/settings/SettingsTest.scala b/test/junit/scala/tools/nsc/settings/SettingsTest.scala index 0b8029326e..eda0c27834 100644 --- a/test/junit/scala/tools/nsc/settings/SettingsTest.scala +++ b/test/junit/scala/tools/nsc/settings/SettingsTest.scala @@ -158,6 +158,8 @@ class SettingsTest { assertTrue(check("-m:-d,ac")(_.value == Set(a,c))) assertTrue(check("-m:-b,ac,uber")(_.value == Set(a,c,d))) + assertFalse(check("-m:uber")(_.contains("i-m-not-an-option"))) + assertThrows[IllegalArgumentException](check("-m:-_")(_ => true), _ contains "'-_' is not a valid choice") assertThrows[IllegalArgumentException](check("-m:a,b,-ab")(_ => true), _ contains "'ab' cannot be negated") assertThrows[IllegalArgumentException](check("-m:a,ac,-uber,uber")(_ => true), _ contains "'uber' cannot be negated") |