Expect a straight triangle to round-trip as a polygon.

Simple shapes export as rect, circle, ellipse, line, polyline, and polygon, so the imported triangle is no longer a path.
This commit is contained in:
Vikram Bhaskaran committed 2026-11-04 19:34:23 +11:00
1 parent 38cb72e3eb
commit c6fc8af06d
1 file changed
+3 -1
+3 -1
View File
@@ -600,7 +600,9 @@ fn import_basic_shapes() {
assert!(s.contains("<rect "), "{s}");
assert!(s.contains("<circle "), "{s}");
assert!(s.contains("<ellipse "), "{s}");
assert!(s.contains("<path "), "a polygon stays a path: {s}");
assert!(s.contains("<polygon "), "a straight triangle stays a polygon: {s}");
assert!(s.contains("<polyline "), "{s}");
assert!(s.contains("<line "), "{s}");
}
#[test]