diff options
author | Rocky Madden <git@rockymadden.com> | 2014-03-26 16:39:03 -0600 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2014-03-26 16:39:03 -0600 |
commit | e952081f2cfa013fb0338602021f6160e49bb708 (patch) | |
tree | 02c2fc132ab96a87f46fcdb018e52f3077597a05 /core | |
parent | a71e78f0847214304dfea5efff6b7e699765090a (diff) | |
download | stringmetric-e952081f2cfa013fb0338602021f6160e49bb708.tar.gz stringmetric-e952081f2cfa013fb0338602021f6160e49bb708.tar.bz2 stringmetric-e952081f2cfa013fb0338602021f6160e49bb708.zip |
Removed duplicate file.
Diffstat (limited to 'core')
-rw-r--r-- | core/src/test/scala/com/rockymadden/stringmetric/TransformSpec.scala | 159 |
1 files changed, 0 insertions, 159 deletions
diff --git a/core/src/test/scala/com/rockymadden/stringmetric/TransformSpec.scala b/core/src/test/scala/com/rockymadden/stringmetric/TransformSpec.scala deleted file mode 100644 index 01fa3a3..0000000 --- a/core/src/test/scala/com/rockymadden/stringmetric/TransformSpec.scala +++ /dev/null @@ -1,159 +0,0 @@ -package com.rockymadden.stringmetric - -import com.rockymadden.stringmetric.transform._ - -object transformSpec extends org.specs2.mutable.SpecificationWithJUnit { - "filterAlpha()" should { - "return transformed" in { - filterAlpha( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo("aBc".toCharArray) - } - } - - "filterNotAlpha()" should { - "return transformed" in { - filterNotAlpha( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("123" + 0x250.toChar).toCharArray - ) - } - } - - "filterAlphaNumeric()" should { - "return transformed" in { - filterAlphaNumeric( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo("aBc123".toCharArray) - } - } - - "filterNotAlphaNumeric()" should { - "return transformed" in { - filterNotAlphaNumeric( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("" + 0x250.toChar).toCharArray - ) - } - } - - "filterAscii()" should { - "return transformed" in { - filterAscii( - ("aBc" + 0x80.toChar).toCharArray - ) must beEqualTo("aBc".toCharArray) - } - } - - "filterNotAscii()" should { - "return transformed" in { - filterNotAscii( - ("aBc" + 0x100.toChar).toCharArray - ) must beEqualTo( - ("" + 0x100.toChar).toCharArray - ) - } - } - - "filterExtendedAscii()" should { - "return transformed" in { - filterExtendedAscii( - ("aBc" + 0x100.toChar).toCharArray - ) must beEqualTo("aBc".toCharArray) - } - } - - "filterNotExtendedAscii()" should { - "return transformed" in { - filterNotExtendedAscii( - ("aBc" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("" + 0x250.toChar).toCharArray - ) - } - } - - "filterLatin()" should { - "return transformed" in { - filterLatin( - ("aBc" + 0x250.toChar).toCharArray - ) must beEqualTo("aBc".toCharArray) - } - } - - "filterNotLatin()" should { - "return transformed" in { - filterNotLatin( - ("aBc" + 0x300.toChar).toCharArray - ) must beEqualTo( - ("" + 0x300.toChar).toCharArray - ) - } - } - - "filterLowerCase()" should { - "return transformed" in { - filterLowerCase( - "aBc123" + 0x250.toChar - ) must beEqualTo("ac".toCharArray) - } - } - - "filterNotLowerCase()" should { - "return transformed" in { - filterNotLowerCase( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("B123" + 0x250.toChar).toCharArray - ) - } - } - - "filterNumeric()" should { - "return transformed" in { - filterNumeric( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo("123".toCharArray) - } - } - - "filterNotNumeric()" should { - "return transformed" in { - filterNotNumeric( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("aBc" + 0x250.toChar).toCharArray - ) - } - } - - "filterUpperCase()" should { - "return transformed" in { - filterUpperCase( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo("B".toCharArray) - } - } - - "filterNotUpperCase()" should { - "return transformed" in { - filterNotUpperCase( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("ac123" + 0x250.toChar).toCharArray - ) - } - } - - "ignoreAlphaCase()" should { - "return transformed" in { - ignoreAlphaCase( - ("aBc123" + 0x250.toChar).toCharArray - ) must beEqualTo( - ("abc123" + 0x250.toChar).toCharArray - ) - } - } -} |