hylo-lang / Swifty-LLVM

Swifty interface for the LLVM compiler infrastructure.
Apache License 2.0
28 stars 5 forks source link

Use more descriptive XCTAssertions #43

Open dabrahams opened 8 months ago

dabrahams commented 8 months ago

We have lots of checks like this:

    XCTAssert((t as IRType) == t)

When that fails, it fails to give some useful information. Should be:

    XCTAssertEqual(t as IRType, t)

Do this throughout.