diff options
author | Rocky Madden <git@rockymadden.com> | 2012-10-29 15:59:47 -0600 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2012-10-29 15:59:47 -0600 |
commit | b5fd437b9b9629ca7e5f424ea622eb8e03c180ca (patch) | |
tree | 5efa2d80ebe40459e2b0d054120f0dc255f94e35 /core | |
parent | 2ca768afd8dc92832d6a67c5cecd11103383f3d5 (diff) | |
download | stringmetric-b5fd437b9b9629ca7e5f424ea622eb8e03c180ca.tar.gz stringmetric-b5fd437b9b9629ca7e5f424ea622eb8e03c180ca.tar.bz2 stringmetric-b5fd437b9b9629ca7e5f424ea622eb8e03c180ca.zip |
Renamed filter to AsciiLetterCaseStringFilter to more accurately describe purpose.
Diffstat (limited to 'core')
-rwxr-xr-x | core/source/core/scala/org/hashtree/stringmetric/AsciiLetterCaseStringFilter.scala (renamed from core/source/core/scala/org/hashtree/stringmetric/AsciiCaseStringFilter.scala) | 2 | ||||
-rwxr-xr-x | core/source/test/scala/org/hashtree/stringmetric/AsciiLetterCaseStringFilterSpec.scala (renamed from core/source/test/scala/org/hashtree/stringmetric/AsciiCaseStringFilterSpec.scala) | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/source/core/scala/org/hashtree/stringmetric/AsciiCaseStringFilter.scala b/core/source/core/scala/org/hashtree/stringmetric/AsciiLetterCaseStringFilter.scala index cb78cef..7e6b47c 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/AsciiCaseStringFilter.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/AsciiLetterCaseStringFilter.scala @@ -1,7 +1,7 @@ package org.hashtree.stringmetric /** A decorator [[org.hashtree.stringmetric.StringFilter]]. Ensures the input case-sensitivity does not matter. */ -trait AsciiCaseStringFilter extends StringFilter { +trait AsciiLetterCaseStringFilter extends StringFilter { abstract override def filter(charArray: Array[Char]): Array[Char] = { super.filter( charArray.map { c => diff --git a/core/source/test/scala/org/hashtree/stringmetric/AsciiCaseStringFilterSpec.scala b/core/source/test/scala/org/hashtree/stringmetric/AsciiLetterCaseStringFilterSpec.scala index 62cd4de..e45e8de 100755 --- a/core/source/test/scala/org/hashtree/stringmetric/AsciiCaseStringFilterSpec.scala +++ b/core/source/test/scala/org/hashtree/stringmetric/AsciiLetterCaseStringFilterSpec.scala @@ -4,10 +4,10 @@ import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) -final class AsciiCaseStringFilterSpec extends ScalaTest { - private final val Filter = new StringFilterDelegate with AsciiCaseStringFilter +final class AsciiLetterCaseStringFilterSpec extends ScalaTest { + private final val Filter = new StringFilterDelegate with AsciiLetterCaseStringFilter - "AsciiCaseStringFilter" should provide { + "AsciiLetterCaseStringFilter" should provide { "overloaded filter method" when passed { "String with mixed case" should returns { "String with the same case" in { |