提交 9954ab57 authored 作者: Frederic's avatar Frederic

less test print.

上级 4f44bfa7
...@@ -195,8 +195,8 @@ def test_clinker_literal_inlining(): ...@@ -195,8 +195,8 @@ def test_clinker_literal_inlining():
fn = lnk.make_function() fn = lnk.make_function()
assert abs(fn(2.0, 2.0) + 0.12345678) < 1e-9 assert abs(fn(2.0, 2.0) + 0.12345678) < 1e-9
code = lnk.code_gen() code = lnk.code_gen()
print "=== Code generated ===" #print "=== Code generated ==="
print code #print code
assert "4.12345678" in code # we expect the number to be inlined assert "4.12345678" in code # we expect the number to be inlined
......
...@@ -110,22 +110,22 @@ class FailureWatch: ...@@ -110,22 +110,22 @@ class FailureWatch:
def consistent(g): def consistent(g):
print "Testing consistent:", g #print "Testing consistent:", g
try: try:
assert g.consistent() assert g.consistent()
except AssertionError: except AssertionError:
print "Test failed! The graph was marked as NOT consistent." print "Test failed! The graph was marked as NOT consistent."
raise raise
print "Test OK" #print "Test OK"
def inconsistent(g): def inconsistent(g):
print "Testing NOT consistent:", g #print "Testing NOT consistent:", g
try: try:
assert not g.consistent() assert not g.consistent()
except AssertionError: except AssertionError:
print "Test failed! The graph was marked as consistent." print "Test failed! The graph was marked as consistent."
raise raise
print "Test OK" #print "Test OK"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论