mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-20 01:14:23 +01:00
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:
1 file changed
+3
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user