func TestParseModeWithInvalidParams(t *testing.T) {
	for _, i := range invalidInputs {
		t.Logf("test: %s", i)
		_, err := file.ParseMode(i, os.FileMode(0))
		if err == nil {
			t.Errorf("got no error")
		}
		t.Log(err)
	}
}
func TestParseModes(t *testing.T) {
	for _, p := range patterns {
		t.Logf("test: %s", p.input)
		got, err := file.ParseMode(p.input, p.base)
		if err != nil {
			t.Errorf("%s on %v : got error %v", p.input, p.base, err)
		}
		if p.expected != got {
			t.Errorf("%s on %v : got %v, expected %v", p.input, p.base, got, p.expected)
		}
	}
}