summaryrefslogtreecommitdiff
path: root/tests/reverse/main_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-25 15:32:46 +0200
committerJakob Unterwurzacher2016-09-25 16:43:17 +0200
commitffdb7cd47af8488ff282dbcbefdf884b9aadadff (patch)
tree6113d198427b800c9ccbe1d3e73f59cc91e0011a /tests/reverse/main_test.go
parent2050c7f3b3822a4a3329d4ba5b146d269ef05b4d (diff)
reverse: more thorough longname stat test
Now also verifies the returned file size.
Diffstat (limited to 'tests/reverse/main_test.go')
-rw-r--r--tests/reverse/main_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/reverse/main_test.go b/tests/reverse/main_test.go
index 3d10750..f59386b 100644
--- a/tests/reverse/main_test.go
+++ b/tests/reverse/main_test.go
@@ -1,6 +1,7 @@
package reverse_test
import (
+ "bytes"
"os"
"testing"
@@ -8,8 +9,10 @@ import (
)
var dirA, dirB, dirC string
+var x240 string
func TestMain(m *testing.M) {
+ x240 = string(bytes.Repeat([]byte("x"), 240))
dirA = test_helpers.TmpDir + "/a"
dirB = test_helpers.TmpDir + "/b"
dirC = test_helpers.TmpDir + "/c"