summaryrefslogtreecommitdiff
path: root/core/source/test/scala/com/rockymadden/stringmetric/filter/AsciiLetterOnlyFilterSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/source/test/scala/com/rockymadden/stringmetric/filter/AsciiLetterOnlyFilterSpec.scala')
-rwxr-xr-xcore/source/test/scala/com/rockymadden/stringmetric/filter/AsciiLetterOnlyFilterSpec.scala33
1 files changed, 0 insertions, 33 deletions
diff --git a/core/source/test/scala/com/rockymadden/stringmetric/filter/AsciiLetterOnlyFilterSpec.scala b/core/source/test/scala/com/rockymadden/stringmetric/filter/AsciiLetterOnlyFilterSpec.scala
deleted file mode 100755
index d134792..0000000
--- a/core/source/test/scala/com/rockymadden/stringmetric/filter/AsciiLetterOnlyFilterSpec.scala
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.rockymadden.stringmetric.filter
-
-import com.rockymadden.stringmetric.ScalaTest
-import org.junit.runner.RunWith
-import org.scalatest.junit.JUnitRunner
-
-@RunWith(classOf[JUnitRunner])
-final class AsciiLetterOnlyFilterSpec extends ScalaTest {
- import AsciiLetterOnlyFilterSpec.Filter
-
- "AsciiLetterOnlyFilter" should provide {
- "overloaded filter method" when passed {
- "String with mixed characters" should returns {
- "String with non-letters removed" in {
- Filter.filter("!@#$%^&*()abc") should equal ("abc")
- Filter.filter("!@#$%^&*()abc123") should equal ("abc")
- Filter.filter("abc!@#$%^&*()123") should equal ("abc")
- }
- }
- "character array with mixed characters" should returns {
- "character array with non-letters removed" in {
- Filter.filter("!@#$%^&*()abc".toCharArray) should equal ("abc".toCharArray)
- Filter.filter("!@#$%^&*()abc123".toCharArray) should equal ("abc".toCharArray)
- Filter.filter("abc!@#$%^&*()123".toCharArray) should equal ("abc".toCharArray)
- }
- }
- }
- }
-}
-
-object AsciiLetterOnlyFilterSpec {
- private final val Filter = new StringFilterDelegate with AsciiLetterOnlyFilter
-}