mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
11 lines
255 B
Python
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)
|