Skip to content

Commit

Permalink
Update NEWS and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 2, 2018
1 parent 05a681d commit dbae0f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Update mongo-c-driver to upstream 1.12.0
- Stable GridFS support! See ?gridfs
- Compiler warnings for GCC 8
- Fixed bson spec unit tests (Aaron Jacobs)

1.6
- Update mongo-c-driver to upstream 1.9.2
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-diamonds.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ test_that("find query", {
})

test_that("remove data", {
m$remove('{"cut" : "Premium", "price" : { "$lt" : 1000 } }', multiple = FALSE)
m$remove('{"cut" : "Premium", "price" : { "$lt" : 1000 } }', just_one = TRUE)
expect_equal(m$count(), nrow(diamonds)-1)
m$remove('{"cut" : "Premium", "price" : { "$lt" : 1000 } }', multiple = FALSE)
m$remove('{"cut" : "Premium", "price" : { "$lt" : 1000 } }', just_one = TRUE)
expect_equal(m$count(), nrow(diamonds)-2)
m$remove('{"cut" : "Premium", "price" : { "$lt" : 1000 } }', multiple = TRUE)
m$remove('{"cut" : "Premium", "price" : { "$lt" : 1000 } }', just_one = FALSE)
expect_equal(m$count(), nrow(diamonds) - 3200)
m$remove('{}', multiple = TRUE)
m$remove('{}', just_one = FALSE)
expect_equal(m$count(), 0L)
expect_true(m$drop())
})
2 changes: 1 addition & 1 deletion tests/testthat/test-flights.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test_that("insert data", {
})

test_that("remove data", {
m$remove('{}', multiple = TRUE)
m$remove('{}')
expect_equal(m$count(), 0L)
expect_true(m$drop())
})

0 comments on commit dbae0f8

Please sign in to comment.