Texts[n] now also provides a TextWithProperties object. Bugfix: this method was not delivering any objects with properties at all.

This commit is contained in:
Matthias Koefferlein
2025-03-26 01:22:54 +01:00
parent a24d5388d7
commit 3aebf90ecd
15 changed files with 141 additions and 11 deletions
+3 -1
View File
@@ -233,7 +233,9 @@ class DBRegion_TestClass < TestBase
r = RBA::Region::new
r.insert(RBA::PolygonWithProperties::new(RBA::Box::new(0, 0, 10, 20), { 1 => 'value' }))
assert_equal(r[0].to_s, "(0,0;0,20;10,20;10,0) props={1=>value}")
r.insert(RBA::Box::new(1, 2, 11, 22))
assert_equal(r[0].to_s, "@@@")
assert_equal(r[1].to_s, "(0,0;0,20;10,20;10,0) props={1=>value}")
r = RBA::Region::new(ly.begin_shapes(c1.cell_index, l2), "*")
assert_equal(csort(r.to_s), csort("(-11,-21;-11,-19;-9,-19;-9,-21);(9,19;9,21;11,21;11,19);(-11,79;-11,81;-9,81;-9,79);(9,119;9,121;11,121;11,119);(189,79;189,81;191,81;191,79);(209,119;209,121;211,121;211,119)"))