yasm/tools/python-yasm/tests/test_bytecode.py
Michael Urman 486ae1c73a Rework yasm.Expression to accept strings like '+' to indicate operation.
Add tests for yasm.Expression and new yasm.ImmVal.

svn path=/trunk/yasm/; revision=1527
2006-05-07 16:41:16 +00:00

11 lines
255 B
Python

# $Id$
from tests import TestCase, add
from yasm import Bytecode, ImmVal, Expression
class TImmVal(TestCase):
def test_create(self):
self.assertRaises(TypeError, ImmVal, "notimmval")
imm = ImmVal(Expression('+', 2, 3))
add(TImmVal)