func (s commonSuite) TestSplitSuffixDotFilePlain(c *gc.C) { path, suffix := filepath.SplitSuffix(".spam") c.Check(path, gc.Equals, ".spam") c.Check(suffix, gc.Equals, "") }
func (s commonSuite) TestSplitSuffixDofileWithSuffix(c *gc.C) { path, suffix := filepath.SplitSuffix(".spam.ext") c.Check(path, gc.Equals, ".spam") c.Check(suffix, gc.Equals, ".ext") }
func (s commonSuite) TestSplitSuffixEmpty(c *gc.C) { path, suffix := filepath.SplitSuffix("") c.Check(path, gc.Equals, "") c.Check(suffix, gc.Equals, "") }