Exemplo n.º 1
0
func (*LifeSuite) TestIsNotDeadSuccess(c *gc.C) {
	for i, test := range []life.Value{
		life.Alive, life.Dying, "", "bad", "DEAD",
	} {
		c.Logf("test %d: %s", i, test)
		c.Check(life.IsNotDead(test), jc.IsTrue)
	}
}
Exemplo n.º 2
0
func (*LifeSuite) TestIsNotDeadFailure(c *gc.C) {
	c.Check(life.IsNotDead(life.Dead), jc.IsFalse)
}