Sha256: d840b73aacfd16021262ecc5c347ef1a4c49f5f1b28abea6184cbf29ba4aa2ab

Contents?: true

Size: 1.22 KB

Versions: 72

Compression:

Stored size: 1.22 KB

Contents

package isogram

// Source: exercism/problem-specifications
// Commit: 79f1357 isogram: Apply new "input" policy (#1180)
// Problem Specifications Version: 1.3.0

var testCases = []struct {
	description string
	input       string
	expected    bool
}{
	{
		description: "empty string",
		input:       "",
		expected:    true,
	},
	{
		description: "isogram with only lower case characters",
		input:       "isogram",
		expected:    true,
	},
	{
		description: "word with one duplicated character",
		input:       "eleven",
		expected:    false,
	},
	{
		description: "longest reported english isogram",
		input:       "subdermatoglyphic",
		expected:    true,
	},
	{
		description: "word with duplicated character in mixed case",
		input:       "Alphabet",
		expected:    false,
	},
	{
		description: "hypothetical isogrammic word with hyphen",
		input:       "thumbscrew-japingly",
		expected:    true,
	},
	{
		description: "isogram with duplicated hyphen",
		input:       "six-year-old",
		expected:    true,
	},
	{
		description: "made-up name that is an isogram",
		input:       "Emily Jung Schwartzkopf",
		expected:    true,
	},
	{
		description: "duplicated character in the middle",
		input:       "accentor",
		expected:    false,
	},
}

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.158 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.157 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.156 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.155 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.154 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.153 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.152 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.151 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.150 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.149 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.148 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.147 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.146 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.145 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.144 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.143 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.142 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.141 tracks/go/exercises/isogram/cases_test.go
trackler-2.2.1.140 tracks/go/exercises/isogram/cases_test.go