1plugin = 2{ 3 type = "piglet", 4 name = "piglet::flow", 5 test = function() 6 dofile(SCRIPT_DIR .. "/../common.lua") 7 return run_tests(tests) 8 end 9} 10 11tests = 12{ 13 initialize = function() 14 local flow = Flow.new() 15 assert(flow) 16 17 flow = Flow.new(1) 18 assert(flow) 19 end, 20 21 reset = function() 22 local flow = Flow.new() 23 flow:reset() 24 end 25} 26