test/functional/ft_13_variables.rb in ruote-2.1.7 vs test/functional/ft_13_variables.rb in ruote-2.1.8
- old
+ new
@@ -35,11 +35,11 @@
end
end
#noisy
- assert_trace(pdef, 'done.')
+ assert_trace('done.', pdef)
#logger.log.each { |e| p e }
assert_equal(
1, logger.log.select { |e| e['action'] == 'variable_set' }.size)
@@ -64,11 +64,11 @@
end
end
#noisy
- assert_trace(pdef, %w[ a0:b0:a0:b0 a1:b1:a0:b1 a0:b1:a0:b1 ])
+ assert_trace(%w[ a0:b0:a0:b0 a1:b1:a0:b1 a0:b1:a0:b1 ], pdef)
end
def test_engine_variables
pdef = Ruote.process_definition do
@@ -82,11 +82,11 @@
#noisy
@engine.variables['vb'] = 'b0'
- assert_trace(pdef, %w[ a0: b0:b0 done. ])
+ assert_trace(%w[ a0: b0:b0 done. ], pdef)
assert_equal(
1, logger.log.select { |e| e['action'] == 'variable_set' }.size)
end
@@ -117,10 +117,10 @@
results << fexp.locate_var('a').first.fei.to_storage_id
end
#noisy
- assert_trace pdef, 'done.'
+ assert_trace 'done.', pdef
#p results
assert_equal(nil, results[0])
assert_match(/^0||\d+_\d+$/, results[1])