Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"is_*" passing failing tests #68

Closed
gaejake opened this issue Nov 2, 2012 · 1 comment
Closed

"is_*" passing failing tests #68

gaejake opened this issue Nov 2, 2012 · 1 comment
Labels

Comments

@gaejake
Copy link

gaejake commented Nov 2, 2012

require("busted")

describe("Latest busted from Luarocks", function()
it("seems to have a problem with is", function()
    assert.is_true(1 == 2)
end)
it("isn't limited to true", function()
    assert.is_false(2 == 2)
end)
it("doesn't have that problem with True", function()
    assert.True(1 == 2)
end)
it("does not have a problem with is.True, either", function()
    assert.is.True(1 == 2)
end)
end)

2 successes / 2 failures / 0 pending : 0 seconds.

Failure → busted-test.lua @ 10
doesn't have that problem with True
busted-test.lua:11: Expected objects to be the same. Passed in:
(boolean) false
Expected:
(boolean) true

Failure → busted-test.lua @ 13
does not have a problem with is.True
busted-test.lua:14: Expected objects to be the same. Passed in:
(boolean) false
Expected:
(boolean) true

@ajacksified
Copy link
Contributor

Fixed with latest luassert; will close this once the rockspec is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants