diff options
Diffstat (limited to 'core/source/test/scala/com/rockymadden/stringmetric/phonetic/RefinedSoundexMetricSpec.scala')
-rwxr-xr-x | core/source/test/scala/com/rockymadden/stringmetric/phonetic/RefinedSoundexMetricSpec.scala | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/core/source/test/scala/com/rockymadden/stringmetric/phonetic/RefinedSoundexMetricSpec.scala b/core/source/test/scala/com/rockymadden/stringmetric/phonetic/RefinedSoundexMetricSpec.scala index 57964a5..84f547a 100755 --- a/core/source/test/scala/com/rockymadden/stringmetric/phonetic/RefinedSoundexMetricSpec.scala +++ b/core/source/test/scala/com/rockymadden/stringmetric/phonetic/RefinedSoundexMetricSpec.scala @@ -5,33 +5,31 @@ import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) -final class RefinedSoundexMetricSpec extends ScalaTest { - "RefinedSoundexMetric" should provide { - "compare method" when passed { - "empty arguments" should returns { - "None" in { - RefinedSoundexMetric.compare("", "").isDefined should be (false) - RefinedSoundexMetric.compare("abc", "").isDefined should be (false) - RefinedSoundexMetric.compare("", "xyz").isDefined should be (false) - } +final class RefinedSoundexMetricSpec extends ScalaTest { "RefinedSoundexMetric" should provide { + "compare method" when passed { + "empty arguments" should returns { + "None" in { + RefinedSoundexMetric.compare("", "").isDefined should be (false) + RefinedSoundexMetric.compare("abc", "").isDefined should be (false) + RefinedSoundexMetric.compare("", "xyz").isDefined should be (false) } - "non-phonetic arguments" should returns { - "None" in { - RefinedSoundexMetric.compare("123", "123").isDefined should be (false) - RefinedSoundexMetric.compare("123", "").isDefined should be (false) - RefinedSoundexMetric.compare("", "123").isDefined should be (false) - } + } + "non-phonetic arguments" should returns { + "None" in { + RefinedSoundexMetric.compare("123", "123").isDefined should be (false) + RefinedSoundexMetric.compare("123", "").isDefined should be (false) + RefinedSoundexMetric.compare("", "123").isDefined should be (false) } - "phonetically similar arguments" should returns { - "Boolean indicating true" in { - RefinedSoundexMetric.compare("robert", "rupert").get should be (true) - } + } + "phonetically similar arguments" should returns { + "Boolean indicating true" in { + RefinedSoundexMetric.compare("robert", "rupert").get should be (true) } - "phonetically dissimilar arguments" should returns { - "Boolean indicating false" in { - RefinedSoundexMetric.compare("robert", "rubin").get should be (false) - } + } + "phonetically dissimilar arguments" should returns { + "Boolean indicating false" in { + RefinedSoundexMetric.compare("robert", "rubin").get should be (false) } } } -} +}} |