예제 #1
0
func (*LifeSuite) TestIsNotAliveSuccess(c *gc.C) {
	for i, test := range []life.Value{
		life.Dying, life.Dead, "", "bad", "ALIVE",
	} {
		c.Logf("test %d: %s", i, test)
		c.Check(life.IsNotAlive(test), jc.IsTrue)
	}
}
예제 #2
0
func (*LifeSuite) TestIsNotAliveFailure(c *gc.C) {
	c.Check(life.IsNotAlive(life.Alive), jc.IsFalse)
}