let's not number the test files in octal pl0x

master
Jordan Orelli 10 years ago
parent bbc5e45d13
commit 0cad3a6253

@ -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

@ -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

Loading…
Cancel
Save