1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-11-09 20:03:05 +03:00

Fix Arc tests

This commit is contained in:
Yuriy Kashnikov 2017-10-06 17:14:57 +07:00
parent a8ef0f2958
commit 4f9d7e04b6

View File

@ -30,8 +30,7 @@ class MacawSVGTests: XCTestCase {
let g3 = Group(contents:[Ellipse(cx: 20, cy: 20, rx: 20, ry:20).arc(shift: 3.14159250259399, extent: 2.67794513702393).stroke(fill: Color.green)], place: Transform(dx:110, dy: 140) )
let group = Group(contents:[g1, g2, g3])
let arcGroupReference = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" ><g><g transform=\"translate(10,10)\" ><ellipse cy=\"20\" ry=\"20\" rx=\"20\" cx=\"20\" fill=\"none\" stroke=\"green\" stroke-width=\"1.0\"/></g><g transform=\"translate(10,140)\" ><path d=\"M20.0000015099579,39.9999999999999 A 20.0,20.0 0.0 0, 1 1.06581410364015e-14,20.0000006357301\" fill=\"none\" stroke=\"green\" stroke-width=\"1.0\"/></g><g transform=\"translate(110,140)\" ><path d=\"M2.27373675443232e-13,20.0000030199161 A 20.0,20.0 0.0 0, 1 37.888543296214,11.0557270424323\" fill=\"none\" stroke=\"green\" stroke-width=\"1.0\"/></g></g></svg>"
print(SVGSerializer.serialize(node: group) == arcGroupReference)
XCTAssert(true)
XCTAssert(SVGSerializer.serialize(node: group) == arcGroupReference)
}