Skip to content

v0.3.0

Compare
Choose a tag to compare
@thacuber2a03 thacuber2a03 released this 21 Jun 22:00
· 12 commits to master since this release

Breaking changes

  • Custom assertions must now start with a call to startCustom, and each return branch must be return T.endCustom(returnVal):
fn assertTypeEqual(T: ^toast::Context, a, b: any): bool {
    T.startCustom()

    if !selftypeeq(a, b) {
        T.fail("expected a and b to have the same type")
        return T.endCustom(false)
    }

    return T.endCustom(true)
}

Major changes

  • Both compact and verbose more print the line and file of the assertion that made the test fail, along with the time it took:
test 'fake file': error code is not std::StdErr.ok (4)
reason: 'couldn't open non-existant file (as it's supposed to do)'
at file /home/thacuber2a03/Documentos/code/umka/toast/test.um
line 18, took 0.077724ms

Minor changes

  • Hopefully a bit less color than before