Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

New assertion library #67

Open
Open
@LPGhatguy

Description

@LPGhatguy

We've slowly been becoming less happy about Expectation as our assertion syntax.

It might be a good idea to involve a new assertion library and syntax, like the one from Busted, which is more flexible. Some examples from Busted:

-- deep check comparisons!
assert.are.same({ table = "great"}, { table = "great" })

-- or check by reference!
assert.are_not.equal({ table = "great"}, { table = "great"})

assert.truthy("this is a string") -- truthy: not false or nil

assert.True(1 == 1)
assert.is_true(1 == 1)

assert.falsy(nil)
assert.has_error(function() error("Wat") end, "Wat")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions