test/hexapdf/layout/test_text_layouter.rb in hexapdf-0.32.2 vs test/hexapdf/layout/test_text_layouter.rb in hexapdf-0.33.0
- old
+ new
@@ -417,9 +417,13 @@
assert_equal([40, 20, 40, 60, 20, 60, 20], result.lines.map(&:width))
assert_equal([20, 0, 20, 0, 0, 0, 0], result.lines.map(&:x_offset))
assert(result.remaining_items.empty?)
assert_equal(:success, result.status)
end
+
+ result = @layouter.fit(boxes([20, 20], [20, 20], [20, 20], [20, 20]), 60, 200,
+ apply_first_text_indent: false)
+ assert_equal([60, 20], result.lines.map(&:width))
end
it "fits using a limited height" do
result = @layouter.fit(boxes(*([[20, 20]] * 100)), 20, 100)
assert_equal(95, result.remaining_items.count)