# Changeset View

Changeset View

# Standalone View

Standalone View

# src/scripts/pyolian/test_eolian.py

Show First 20 Lines • Show All 693 Lines • ▼ Show 20 Line(s) | 686 | def test_expression_unary(self, eolian_db): | |||
---|---|---|---|---|---|

694 | assert isinstance(unary, eolian.Expression) | 694 | assert isinstance(unary, eolian.Expression) | ||

695 | assert unary.type == eolian.Eolian_Expression_Type.INT | 695 | assert unary.type == eolian.Eolian_Expression_Type.INT | ||

696 | assert float(exp.serialize) == 32768.0 # Bug too ? | 696 | assert float(exp.serialize) == 32768.0 # Bug too ? | ||

697 | 697 | | |||

698 | # TODO test_expression_binary | 698 | # TODO test_expression_binary | ||

699 | # exp.binary_operator # TODO find a better test (only works for BINARY expr) | 699 | # exp.binary_operator # TODO find a better test (only works for BINARY expr) | ||

700 | # exp.binary_lhs # TODO find a better test (only works for BINARY expr) | 700 | # exp.binary_lhs # TODO find a better test (only works for BINARY expr) | ||

701 | # exp.binary_rhs # TODO find a better test (only works for BINARY expr) | 701 | # exp.binary_rhs # TODO find a better test (only works for BINARY expr) | ||

702 | | ||||

703 | class TestEolianInherits(object): | ||||

704 | def test_inherits_full(self, eolian_db): | ||||

705 | cls = eolian_db.class_by_name_get('Efl.Ui.Widget') | ||||

706 | assert 'Efl.Object' in cls.inherits_full |