More tests, better errors.

This commit is contained in:
jregan
2019-11-26 18:13:15 -08:00
parent a2b84fce86
commit f3e735153f
22 changed files with 112 additions and 59 deletions

View File

@@ -131,7 +131,7 @@ func TestLoaderBadRelative(t *testing.T) {
}
// It's not okay to stay at the same place.
l2, err = l1.New(".")
l2, err = l1.New(filesys.SelfDir)
if err == nil {
t.Fatalf("expected err, but got root %s", l2.Root())
}