Example #1
0
func (s commonSuite) TestSplitSuffixDotFilePlain(c *gc.C) {
	path, suffix := filepath.SplitSuffix(".spam")

	c.Check(path, gc.Equals, ".spam")
	c.Check(suffix, gc.Equals, "")
}
Example #2
0
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")
}
Example #3
0
func (s commonSuite) TestSplitSuffixEmpty(c *gc.C) {
	path, suffix := filepath.SplitSuffix("")

	c.Check(path, gc.Equals, "")
	c.Check(suffix, gc.Equals, "")
}