Пример #1
0
def test_Face_default():
    assert Face.default() == Face(AbsoluteCoord.default(),
                                  RelativeCoord.default(),
                                  RelativeCoord.default(),
                                  RelativeCoord.default(), Eye.default(),
                                  Eye.default(), Mouth.default(),
                                  Nose.default(), EyeBrow.default(),
                                  EyeBrow.default())
Пример #2
0
def test_Nose__add__(a, b, c):
    """ the properties are taken from here:
        http://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html#t:Num
    """
    assert round_Part((a + b) + c) == round_Part(a + (b + c))
    assert a + b == b + a
    assert a + Nose.default() == a
    assert a + -a == Nose(Coord(0, 0), Coord(0, 0), Coord(0, 0))
Пример #3
0
def test_Nose_default():
    assert Nose.default() == Nose(Coord(0, 0), Coord(0, 0), Coord(0, 0))