Ejemplo n.º 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, "")
}
Ejemplo n.º 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")
}
Ejemplo n.º 3
0
func (s commonSuite) TestSplitSuffixEmpty(c *gc.C) {
	path, suffix := filepath.SplitSuffix("")

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