Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Upgrade versions #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli

object PackageSpec extends org.specs2.mutable.SpecificationWithJUnit {
object PackageSpec extends org.specs2.mutable.Specification {
"OptionMap apply()" should {
"return populated Map with single valid double dashed option" in {
val opts = OptionMap("--help")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object metaphonealgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object metaphonealgorithmSpec extends org.specs2.mutable.Specification {
"metaphonealgorithm main()" should {
"print phonetic representation with valid dashless argument" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object metaphonemetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object metaphonemetricSpec extends org.specs2.mutable.Specification {
"metaphonemetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object nysiisalgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object nysiisalgorithmSpec extends org.specs2.mutable.Specification {
"nysiisalgorithm main()" should {
"print phonetic representation with valid dashless argument" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object nysiismetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object nysiismetricSpec extends org.specs2.mutable.Specification {
"nysiismetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object refinednysiisalgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object refinednysiisalgorithmSpec extends org.specs2.mutable.Specification {
"refinednysiisalgorithm main()" should {
"print phonetic representation with valid dashless argument" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object refinednysiismetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object refinednysiismetricSpec extends org.specs2.mutable.Specification {
"refinednysiismetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object refinedsoundexalgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object refinedsoundexalgorithmSpec extends org.specs2.mutable.Specification {
"refinedsoundexalgorithm main()" should {
"print phonetic representation with valid dashless argument" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object refinedsoundexmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object refinedsoundexmetricSpec extends org.specs2.mutable.Specification {
"refinedsoundexmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object soundexalgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object soundexalgorithmSpec extends org.specs2.mutable.Specification {
"soundexalgorithm main()" should {
"print phonetic representation with valid dashless argument" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.phonetic

object soundexmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object soundexmetricSpec extends org.specs2.mutable.Specification {
"soundexmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object dicesorensenmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object dicesorensenmetricSpec extends org.specs2.mutable.Specification {
"dicesorensenmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object hammingmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object hammingmetricSpec extends org.specs2.mutable.Specification {
"hammingmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object jaccardmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object jaccardmetricSpec extends org.specs2.mutable.Specification {
"jaccardmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object jarometricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object jarometricSpec extends org.specs2.mutable.Specification {
"jarometric main()" should {
"print the distance with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object jarowinklermetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object jarowinklermetricSpec extends org.specs2.mutable.Specification {
"jarowinklermetric main()" should {
"print the distance with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object levenshteinmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object levenshteinmetricSpec extends org.specs2.mutable.Specification {
"levenshteinmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object ngrammetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object ngrammetricSpec extends org.specs2.mutable.Specification {
"ngrammetric main()" should {
"print if they are a match with valid dashless arguments and valid n argument" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object overlapmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object overlapmetricSpec extends org.specs2.mutable.Specification {
"overlapmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object ratcliffobershelpmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object ratcliffobershelpmetricSpec extends org.specs2.mutable.Specification {
"ratcliffobershelpmetric main()" should {
"print if they are a match with valid dashless arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.cli.similarity

object weightedlevenshteinmetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object weightedlevenshteinmetricSpec extends org.specs2.mutable.Specification {
"weightedlevenshteinmetric main()" should {
"print if they are a match with valid dashless arguments and valid weight arguments" in {
val out = new java.io.ByteArrayOutputStream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package com.rockymadden.stringmetric

import com.rockymadden.stringmetric.Alphabet._

object AlphabetSpec extends org.specs2.mutable.SpecificationWithJUnit {

object AlphabetSpec extends org.specs2.mutable.Specification {
"AlphabetSet isSuperset()" should {
"return false with non-alphabet argument" in {
Alpha isSuperset '0' must beFalse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.rockymadden.stringmetric
import com.rockymadden.stringmetric.phonetic._
import com.rockymadden.stringmetric.transform._

object StringAlgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object StringAlgorithmSpec extends org.specs2.mutable.Specification {
"StringAlgorithm convenience methods" should {
"pass through" in {
StringAlgorithm.computeWithMetaphone("testone").get must
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.rockymadden.stringmetric.phonetic._
import com.rockymadden.stringmetric.similarity._
import com.rockymadden.stringmetric.transform._

object StringMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object StringMetricSpec extends org.specs2.mutable.Specification {
"StringMetric convenience methods" should {
"pass through" in {
StringMetric.compareWithDiceSorensen(1)("testone", "testtwo").get must
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric

object StringTokenizerSpec extends org.specs2.mutable.SpecificationWithJUnit {
object StringTokenizerSpec extends org.specs2.mutable.Specification {
"NGramTokenizer tokenize()" should {
"return None with empty argument" in {
NGramTokenizer(1).tokenize("").isDefined must beEqualTo(false)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object MetaphoneAlgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object MetaphoneAlgorithmSpec extends org.specs2.mutable.Specification {
"MetaphoneAlgorithm compute()" should {
"return None with empty argument" in {
MetaphoneAlgorithm.compute("").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object MetaphoneMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object MetaphoneMetricSpec extends org.specs2.mutable.Specification {
"MetaphoneMetric compare()" should {
"return None with empty arguments" in {
MetaphoneMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object NysiisAlgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object NysiisAlgorithmSpec extends org.specs2.mutable.Specification {
"NysiisAlgorithm compute()" should {
"return None with empty argument" in {
NysiisAlgorithm.compute("").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object NysiisMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object NysiisMetricSpec extends org.specs2.mutable.Specification {
"NysiisMetric compare()" should {
"return None with empty arguments" in {
NysiisMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object RefinedNysiisAlgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object RefinedNysiisAlgorithmSpec extends org.specs2.mutable.Specification {
"RefinedNysiisAlgorithm compute()" should {
"return None with empty argument" in {
RefinedNysiisAlgorithm.compute("").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object RefinedNysiisMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object RefinedNysiisMetricSpec extends org.specs2.mutable.Specification {
"RefinedNysiisMetric compare()" should {
"return None with empty arguments" in {
RefinedNysiisMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object RefinedSoundexAlgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object RefinedSoundexAlgorithmSpec extends org.specs2.mutable.Specification {
"compute method" should {
"return None with empty argument" in {
RefinedSoundexAlgorithm.compute("").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object RefinedSoundexMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object RefinedSoundexMetricSpec extends org.specs2.mutable.Specification {
"RefinedSoundexMetric compare()" should {
"return None with empty arguments" in {
RefinedSoundexMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object SoundexAlgorithmSpec extends org.specs2.mutable.SpecificationWithJUnit {
object SoundexAlgorithmSpec extends org.specs2.mutable.Specification {
"SoundexAlgorithm compute()" should {
"return None with empty argument" in {
SoundexAlgorithm.compute("").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.phonetic

object SoundexMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object SoundexMetricSpec extends org.specs2.mutable.Specification {
"SoundexMetric compare()" should {
"return None with empty arguments" in {
SoundexMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object DiceSorensenMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object DiceSorensenMetricSpec extends org.specs2.mutable.Specification {
"DiceSorensenMetric compare()" should {
"return None with empty arguments" in {
DiceSorensenMetric(1).compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object HammingMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object HammingMetricSpec extends org.specs2.mutable.Specification {
"HammingMetric compare()" should {
"return None with empty arguments" in {
HammingMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object JaccardMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object JaccardMetricSpec extends org.specs2.mutable.Specification {
"JaccardMetric compare()" should {
"return None with empty arguments" in {
JaccardMetric(1).compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object JaroMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object JaroMetricSpec extends org.specs2.mutable.Specification {
"JaroMetric compare()" should {
"return None with empty arguments" in {
JaroMetric.compare("", "").isDefined should beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object JaroWinklerMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object JaroWinklerMetricSpec extends org.specs2.mutable.Specification {
"JaroWinklerMetric compare()" should {
"return None with empty arguments" in {
JaroWinklerMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object LevenshteinMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object LevenshteinMetricSpec extends org.specs2.mutable.Specification {
"LevenshteinMetric compare()" should {
"return None with empty arguments" in {
LevenshteinMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object NGramMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object NGramMetricSpec extends org.specs2.mutable.Specification {
"NGramMetric compare()" should {
"return None with empty arguments" in {
NGramMetric(1).compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object OverlapMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object OverlapMetricSpec extends org.specs2.mutable.Specification {
"OverlapMetric compare()" should {
"return None with empty arguments" in {
OverlapMetric(1).compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object RatcliffObershelpMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object RatcliffObershelpMetricSpec extends org.specs2.mutable.Specification {
"RatcliffObershelpMetric compare()" should {
"return None with empty arguments" in {
RatcliffObershelpMetric.compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rockymadden.stringmetric.similarity

object WeightedLevenshteinMetricSpec extends org.specs2.mutable.SpecificationWithJUnit {
object WeightedLevenshteinMetricSpec extends org.specs2.mutable.Specification {
"WeightedLevenshteinMetric compare()" should {
"return None with empty arguments" in {
WeightedLevenshteinMetric(10, 0.1, 1).compare("", "").isDefined must beFalse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.rockymadden.stringmetric

import com.rockymadden.stringmetric.transform._

object transformSpec extends org.specs2.mutable.SpecificationWithJUnit {
object transformSpec extends org.specs2.mutable.Specification {
"filterAlpha()" should {
"return transformed" in {
filterAlpha(
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.1
sbt.version=0.13.13