summaryrefslogtreecommitdiff
path: root/comitium_test.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-18 10:32:34 -0600
committernytpu <alex@nytpu.com>2021-03-18 10:32:34 -0600
commitf3096c41a696d188d002e06f14794a360f3756f8 (patch)
tree274f33a97cb67f128009d5a6faab31da323f0b78 /comitium_test.go
parent3b26eb986350587f8330ef126c63a542b5c3f8ce (diff)
remove this so it doesn't look inconsistent
Diffstat (limited to 'comitium_test.go')
-rw-r--r--comitium_test.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/comitium_test.go b/comitium_test.go
deleted file mode 100644
index 287975a..0000000
--- a/comitium_test.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (C) 2021 nytpu
-// SPDX-License-Identifier: AGPL-3.0-or-later
-// For more license details, see LICENSE or <https://www.gnu.org/licenses/agpl-3.0.html>.
-
-package main
-
-import (
- "testing"
-)
-
-func TestVerifyPath(t *testing.T) {
- given := []string{
- "~////../hello-world////",
- "/home/~/../test/../..",
- "/test/torture/../../../../test/./././torture/./0011/",
- ".local/share/comitium/",
- "/home/test/.local/share/comitium",
- }
- want := []string{
- "/home/hello-world",
- "/",
- "/test/torture/0011",
- ".local/share/comitium",
- "/home/test/.local/share/comitium",
- }
- for i, v := range given {
- if result := verifyPath(v); result != want[i] {
- t.Fatalf(`verifyPath("%v") = %v, want %v`, v, result, want[i])
- }
- }
-}