From 0cad3a6253fdfc12e2f6855201af44a30ce706e5 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sat, 2 May 2015 16:10:57 -0400 Subject: [PATCH] let's not number the test files in octal pl0x --- lib/lex_test.go | 2 +- lib/parse_test.go | 2 +- lib/tests/lex/{010.in => 08.in} | 0 lib/tests/lex/{010.out => 08.out} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename lib/tests/lex/{010.in => 08.in} (100%) rename lib/tests/lex/{010.out => 08.out} (100%) diff --git a/lib/lex_test.go b/lib/lex_test.go index c8f1bfd..f7b54e6 100644 --- a/lib/lex_test.go +++ b/lib/lex_test.go @@ -26,7 +26,7 @@ func runLexTest(t *testing.T, basepath, inpath, outpath string) { } r_inpath := filepath.Base(inpath) - n, err := strconv.ParseInt(strings.TrimSuffix(r_inpath, ".in"), 0, 64) + n, err := strconv.ParseInt(strings.TrimSuffix(r_inpath, ".in"), 10, 64) if err != nil { t.Errorf("unable to get test number for path %s: %s", inpath, err) return diff --git a/lib/parse_test.go b/lib/parse_test.go index a302f5b..e036924 100644 --- a/lib/parse_test.go +++ b/lib/parse_test.go @@ -25,7 +25,7 @@ func runParseTest(t *testing.T, basepath, inpath, outpath string) { } r_inpath := filepath.Base(inpath) - n, err := strconv.ParseInt(strings.TrimSuffix(r_inpath, ".in"), 0, 64) + n, err := strconv.ParseInt(strings.TrimSuffix(r_inpath, ".in"), 10, 64) if err != nil { t.Errorf("unable to get test number for path %s: %s", inpath, err) return diff --git a/lib/tests/lex/010.in b/lib/tests/lex/08.in similarity index 100% rename from lib/tests/lex/010.in rename to lib/tests/lex/08.in diff --git a/lib/tests/lex/010.out b/lib/tests/lex/08.out similarity index 100% rename from lib/tests/lex/010.out rename to lib/tests/lex/08.out