Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Müller committed Apr 16, 2016
1 parent 55ef75e commit 66b00ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-expect-equality.R
Expand Up @@ -29,3 +29,9 @@ test_that("useful message if objects equal but not identical", {
expect_failure(expect_identical(f, g), "not identical")
})

test_that("attributes for object (#452)", {
oops <- structure(0, oops = "oops")
expect_equal(oops, oops)
expect_failure(expect_equal(oops, 0))
expect_equal(as.numeric(oops), 0)
})

0 comments on commit 66b00ed

Please sign in to comment.