Sha256: 547a75b1dc3499435ed250e8f9a93c2b80fb698769205a9f80bc59aaf8a81ce0

Contents?: true

Size: 1.1 KB

Versions: 92

Compression:

Stored size: 1.1 KB

Contents

package atbash

// Source: exercism/problem-specifications
// Commit: dda678b atbash-cipher: Apply new "input" policy
// Problem Specifications Version: 1.1.0

type atbashTest struct {
	s        string
	expected string
}

var tests = []atbashTest{
	{
		s:        "yes",
		expected: "bvh",
	},
	{
		s:        "no",
		expected: "ml",
	},
	{
		s:        "OMG",
		expected: "lnt",
	},
	{
		s:        "O M G",
		expected: "lnt",
	},
	{
		s:        "mindblowingly",
		expected: "nrmwy oldrm tob",
	},
	{
		s:        "Testing,1 2 3, testing.",
		expected: "gvhgr mt123 gvhgr mt",
	},
	{
		s:        "Truth is fiction.",
		expected: "gifgs rhurx grlm",
	},
	{
		s:        "The quick brown fox jumps over the lazy dog.",
		expected: "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt",
	},
	{
		s:        "exercism",
		expected: "vcvix rhn",
	},
	{
		s:        "anobstacleisoftenasteppingstone",
		expected: "zmlyh gzxov rhlug vmzhg vkkrm thglm v",
	},
	{
		s:        "testing123testing",
		expected: "gvhgr mt123 gvhgr mt",
	},
	{
		s:        "thequickbrownfoxjumpsoverthelazydog",
		expected: "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt",
	},
}

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.179 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.178 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.177 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.176 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.175 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.174 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.173 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.172 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.171 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.170 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.169 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.167 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.166 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.165 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.164 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.163 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.162 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.161 tracks/go/exercises/atbash-cipher/cases_test.go
trackler-2.2.1.160 tracks/go/exercises/atbash-cipher/cases_test.go