MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / assertRot13Output

Function assertRot13Output

cipher/rot13/rot13_test.go:64–70  ·  view source on GitHub ↗
(t *testing.T, input, expected string)

Source from the content-addressed store, hash-verified

62}
63
64func assertRot13Output(t *testing.T, input, expected string) {
65 actual := rot13(input)
66 if actual != expected {
67 t.Fatalf("With input string %q was expecting %q but actual was %q",
68 input, expected, actual)
69 }
70}
71
72func FuzzRot13(f *testing.F) {
73 for _, rot13TestInput := range rot13TestData {

Callers 2

TestRot13EncryptFunction · 0.85
TestRot13DecryptFunction · 0.85

Calls 1

rot13Function · 0.85

Tested by

no test coverage detected