func test_fail_to_parse_two_vector_elements()

in CyborgTests/XMLSchemaTests.swift [40:61]


    func test_fail_to_parse_two_vector_elements() {
        let result = 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>
            <vector xmlns:android="http://schemas.android.com/apk/res/android"
            android:width="24dp"
            android:height="25dp"
            android:viewportWidth="56"
            android:viewportHeight="100">
            </vector>
            """)
        switch result {
        case .error: break // TODO: test that the error message is as we expect
        case .ok(let wrapped): XCTFail("\(wrapped)")
        }
    }