Skip to content

Commit

Permalink
Added spec test for priority node option.
Browse files Browse the repository at this point in the history
  • Loading branch information
redxeth committed Jun 25, 2021
1 parent 51d0915 commit 61e20cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/atp/flow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,21 @@
s(:continue))))
end

it "atp.test with priority" do
test("test1", bin: 1, softbin: 10, continue: true, priority: 10)
atp.raw.should ==
s(:flow,
s(:name, "sort1"),
s(:test,
s(:object, "test1"),
s(:on_fail,
s(:set_result, "fail",
s(:bin, 1),
s(:softbin, 10)),
s(:continue)),
s(:priority, 10)))
end

it "atp.test with bin descriptions" do
test("test1", bin: 1, softbin: 10, continue: true)
test("test2", bin: 2, bin_description: 'hbin2 fails', softbin: 20, continue: true)
Expand Down

0 comments on commit 61e20cd

Please sign in to comment.