Sha256: f2de06190af5c4fdffd2d7dc2b72971e1c0ebd0c737336a1d3a64066824171b7
Contents?: true
Size: 1.22 KB
Versions: 127
Compression:
Stored size: 1.22 KB
Contents
import org.scalatest.{FunSuite, Matchers} class IsogramTest extends FunSuite with Matchers { test("empty string") { val result = Isogram.isIsogram("") result should be (true) } test("isogram with only lower case characters") { pending val result = Isogram.isIsogram("isogram") result should be (true) } test("word with one duplicated character") { pending val result = Isogram.isIsogram("eleven") result should be (false) } test("longest reported english isogram") { pending val result = Isogram.isIsogram("subdermatoglyphic") result should be (true) } test("word with duplicated character in mixed case") { pending val result = Isogram.isIsogram("Alphabet") result should be (false) } test("hypothetical isogrammic word with hyphen") { pending val result = Isogram.isIsogram("thumbscrew-japingly") result should be (true) } test("isogram with duplicated non letter character") { pending val result = Isogram.isIsogram("Hjelmqvist-Gryb-Zock-Pfund-Wax") result should be (true) } test("made-up name that is an isogram") { pending val result = Isogram.isIsogram("Emily Jung Schwartzkopf") result should be (true) } }
Version data entries
127 entries across 127 versions & 1 rubygems