(f *testing.F)
| 70 | } |
| 71 | |
| 72 | func FuzzRot13(f *testing.F) { |
| 73 | for _, rot13TestInput := range rot13TestData { |
| 74 | f.Add(rot13TestInput.input) |
| 75 | } |
| 76 | f.Fuzz(func(t *testing.T, input string) { |
| 77 | if result := rot13(rot13(input)); result != input { |
| 78 | t.Fatalf("With input string %q was expecting %q but actual was %q", |
| 79 | input, input, result) |
| 80 | } |
| 81 | }) |
| 82 | } |