test/test_polygon_line.rb in rays-0.1.46 vs test/test_polygon_line.rb in rays-0.1.47

- old
+ new

@@ -39,27 +39,27 @@ assert_equal [true, true ], line(1, 2, 3, 4, 5, 6, loop: true, hole: true ).loop_hole assert_equal [true, false], line(1, 2, 3, 4, 5, 6, loop: true, hole: false).loop_hole assert_raise(ArgumentError) {line(1, 2, 3, 4, 5, 6, loop: false, hole: true ).loop_hole} assert_equal [false, false], line(1, 2, 3, 4, 5, 6, loop: false, hole: false).loop_hole - assert_raise(ArgumentError) {line( loop: true, hole: true )} + assert_nothing_raised {line( loop: true, hole: true )} assert_nothing_raised {line( loop: true, hole: false)} assert_raise(ArgumentError) {line( loop: false, hole: true )} assert_nothing_raised {line( loop: false, hole: false)} assert_raise(ArgumentError) {line(1, loop: true, hole: true )} assert_raise(ArgumentError) {line(1, loop: true, hole: false)} assert_raise(ArgumentError) {line(1, loop: false, hole: true )} assert_raise(ArgumentError) {line(1, loop: false, hole: false)} - assert_raise(ArgumentError) {line(1, 2, loop: true, hole: true )} - assert_raise(ArgumentError) {line(1, 2, loop: true, hole: false)} + assert_nothing_raised {line(1, 2, loop: true, hole: true )} + assert_nothing_raised {line(1, 2, loop: true, hole: false)} assert_raise(ArgumentError) {line(1, 2, loop: false, hole: true )} assert_nothing_raised {line(1, 2, loop: false, hole: false)} assert_raise(ArgumentError) {line(1, 2, 3, loop: true, hole: true )} assert_raise(ArgumentError) {line(1, 2, 3, loop: true, hole: false)} assert_raise(ArgumentError) {line(1, 2, 3, loop: false, hole: true )} assert_raise(ArgumentError) {line(1, 2, 3, loop: false, hole: false)} - assert_raise(ArgumentError) {line(1, 2, 3, 4, loop: true, hole: true )} - assert_raise(ArgumentError) {line(1, 2, 3, 4, loop: true, hole: false)} + assert_nothing_raised {line(1, 2, 3, 4, loop: true, hole: true )} + assert_nothing_raised {line(1, 2, 3, 4, loop: true, hole: false)} assert_raise(ArgumentError) {line(1, 2, 3, 4, loop: false, hole: true )} assert_nothing_raised {line(1, 2, 3, 4, loop: false, hole: false)} assert_raise(ArgumentError) {line(1, 2, 3, 4, 5, loop: true, hole: true )} assert_raise(ArgumentError) {line(1, 2, 3, 4, 5, loop: true, hole: false)} assert_raise(ArgumentError) {line(1, 2, 3, 4, 5, loop: false, hole: true )}