func test_parse_empty_vector()

in CyborgTests/XMLSchemaTests.swift [22:38]


    func test_parse_empty_vector() {
        let drawable = VectorDrawable
            .create(from: """
            <?xml version="1.0" encoding="utf-8"?>
            <vector xmlns:android="http://schemas.android.com/apk/res/android"
            android:width="24dp"
            android:height="25dp"
            android:viewportWidth="56"
            android:viewportHeight="100">
            </vector>
            """)
            .expectSuccess()
        XCTAssertEqual(drawable.viewPortWidth, 56)
        XCTAssertEqual(drawable.viewPortHeight, 100)
        XCTAssertEqual(drawable.baseWidth, 24)
        XCTAssertEqual(drawable.baseHeight, 25)
    }