Skip to content

Commit

Permalink
One more "comparitor" -> "comparator" rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
ucbjrl committed Sep 22, 2014
1 parent 3d62d99 commit a39c41a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/scala/TextComparator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,18 @@ class TextComparator {
}
}

object TestComparitor {
object TestComparator {
def compareFiles(masters: Array[String], tests: Array[String]): Option[ComparatorError] = {
var finalResult: Option[ComparatorError] = None
val comparitor = new TextComparator()
val comparator = new TextComparator()
for ((masterFilePath, testFilePath) <- masters zip tests) {
val masterFile = fromFile(masterFilePath)
val original = masterFile.mkString
masterFile.close()
val testFile = fromFile(testFilePath)
val test = testFile.mkString
testFile.close()
val aResult = comparitor.compareText(original, test)
val aResult = comparator.compareText(original, test)
aResult match {
case Some(e: Exception) => println(e)
case None =>{}
Expand Down

0 comments on commit a39c41a

Please sign in to comment.