summaryrefslogtreecommitdiff
path: root/internal/flood/flood_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/flood/flood_test.go')
-rw-r--r--internal/flood/flood_test.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/flood/flood_test.go b/internal/flood/flood_test.go
index a09a3c4..1874254 100644
--- a/internal/flood/flood_test.go
+++ b/internal/flood/flood_test.go
@@ -26,26 +26,3 @@ func TestFlood(t *testing.T) {
})
}
}
-
-func TestNoSpaceCompare(t *testing.T) {
- testCases := []struct {
- a, b string
- ok bool
- }{
- {"", "", true},
- {"x", "", false},
- {"", "x", false},
- {"x ", "x", true},
- {" x", "x", true},
- {"x x", "xx", true},
- {"x x x", "x", false},
- }
- for _, tc := range testCases {
- t.Run(tc.a+"?"+tc.b, func(t *testing.T) {
- ok := noSpaceCompare(tc.a, tc.b)
- if ok != tc.ok {
- t.Errorf("got %v; want %v", ok, tc.ok)
- }
- })
- }
-}