test/raw_prog_test.rb in openwferu-0.9.6 vs test/raw_prog_test.rb in openwferu-0.9.7
- old
+ new
@@ -11,10 +11,12 @@
require 'openwfe/expressions/raw_prog'
class RawProgTest < Test::Unit::TestCase
+ DEBUG = false
+
#def setup
#end
#def teardown
#end
@@ -45,24 +47,22 @@
def test_prog_0
s = TestDefinition.new().make.to_s
- #puts
- #puts s
+ puts s if DEBUG
assert \
s == XML_DEF,
"parsing failed (0)"
end
def test_prog_0b
s = TestDefinition.do_make.to_s
- #puts
- #puts s
+ puts s if DEBUG
assert \
s == XML_DEF,
"parsing failed (0b)"
end
@@ -87,11 +87,11 @@
end
end
pdef = pg.my_proc
s = pdef.to_s
- #puts s
+ puts s if DEBUG
assert \
s == XML_DEF,
"parsing failed (1)"
end
@@ -123,12 +123,13 @@
</process-definition>""".strip
def test_prog_2
s = TestDefinition2.do_make.to_s
- #puts s
+ puts s if DEBUG
+
assert \
s == XML_DEF2,
"parsing failed (2)"
#puts
@@ -168,10 +169,11 @@
end""".strip
def test_prog_3
s = TestDefinition3.do_make.to_s
- #puts s
+
+ puts s if DEBUG
assert \
s == XML_DEF3,
"parsing failed (3)"