Skip to content

Commit

Permalink
Merge pull request #574 from ricemery/isogram
Browse files Browse the repository at this point in the history
Update isogram to latest canoncial json. Refs #488
  • Loading branch information
ErikSchierboom authored Jul 23, 2018
2 parents 8997948 + 5914d98 commit d1b832d
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions exercises/isogram/src/test/scala/IsogramTest.scala
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
import org.scalatest.{Matchers, FunSuite}

/** @version 1.3.0 */
/** @version 1.4.0 */
class IsogramTest extends FunSuite with Matchers {

test("empty string") {
Isogram.isIsogram("") should be (true)
Isogram.isIsogram("") should be(true)
}

test("isogram with only lower case characters") {
pending
Isogram.isIsogram("isogram") should be (true)
Isogram.isIsogram("isogram") should be(true)
}

test("word with one duplicated character") {
pending
Isogram.isIsogram("eleven") should be (false)
Isogram.isIsogram("eleven") should be(false)
}

test("word with one duplicated character from the end of the alphabet") {
pending
Isogram.isIsogram("zzyzx") should be(false)
}

test("longest reported english isogram") {
pending
Isogram.isIsogram("subdermatoglyphic") should be (true)
Isogram.isIsogram("subdermatoglyphic") should be(true)
}

test("word with duplicated character in mixed case") {
pending
Isogram.isIsogram("Alphabet") should be (false)
Isogram.isIsogram("Alphabet") should be(false)
}

test("hypothetical isogrammic word with hyphen") {
pending
Isogram.isIsogram("thumbscrew-japingly") should be (true)
Isogram.isIsogram("thumbscrew-japingly") should be(true)
}

test("isogram with duplicated hyphen") {
pending
Isogram.isIsogram("six-year-old") should be (true)
Isogram.isIsogram("six-year-old") should be(true)
}

test("made-up name that is an isogram") {
pending
Isogram.isIsogram("Emily Jung Schwartzkopf") should be (true)
Isogram.isIsogram("Emily Jung Schwartzkopf") should be(true)
}

test("duplicated character in the middle") {
pending
Isogram.isIsogram("accentor") should be (false)
Isogram.isIsogram("accentor") should be(false)
}
}
}

0 comments on commit d1b832d

Please sign in to comment.