-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcases_test.go
46 lines (44 loc) · 1.18 KB
/
cases_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package atbash
// This is an auto-generated file. Do not change it manually. Run the generator to update the file.
// See https://github.com/exercism/go#synchronizing-tests-and-instructions
// Source: exercism/problem-specifications
// Commit: d137db1 Format using prettier (#1917)
var testCases = []struct {
description string
phrase string
expected string
}{
{
description: "encode yes",
phrase: "yes",
expected: "bvh",
}, {
description: "encode no",
phrase: "no",
expected: "ml",
}, {
description: "encode OMG",
phrase: "OMG",
expected: "lnt",
}, {
description: "encode spaces",
phrase: "O M G",
expected: "lnt",
}, {
description: "encode mindblowingly",
phrase: "mindblowingly",
expected: "nrmwy oldrm tob",
}, {
description: "encode numbers",
phrase: "Testing,1 2 3, testing.",
expected: "gvhgr mt123 gvhgr mt",
}, {
description: "encode deep thought",
phrase: "Truth is fiction.",
expected: "gifgs rhurx grlm",
}, {
description: "encode all the letters",
phrase: "The quick brown fox jumps over the lazy dog.",
expected: "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt",
},
}