Sha256: b2e50e639a6a7a75508be80f0a94fa1c1ab0a136d9cfcf4cde26b875208cb192
Contents?: true
Size: 1.14 KB
Versions: 71
Compression:
Stored size: 1.14 KB
Contents
import org.scalatest.{Matchers, FunSuite} /** @version 1.3.0 */ class IsogramTest extends FunSuite with Matchers { test("empty string") { Isogram.isIsogram("") should be (true) } test("isogram with only lower case characters") { pending Isogram.isIsogram("isogram") should be (true) } test("word with one duplicated character") { pending Isogram.isIsogram("eleven") should be (false) } test("longest reported english isogram") { pending Isogram.isIsogram("subdermatoglyphic") should be (true) } test("word with duplicated character in mixed case") { pending Isogram.isIsogram("Alphabet") should be (false) } test("hypothetical isogrammic word with hyphen") { pending Isogram.isIsogram("thumbscrew-japingly") should be (true) } test("isogram with duplicated hyphen") { pending 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) } test("duplicated character in the middle") { pending Isogram.isIsogram("accentor") should be (false) } }
Version data entries
71 entries across 71 versions & 1 rubygems