Skip to content

Commit

Permalink
fixing test - dataset is live so rows can increase, and fixed data ty…
Browse files Browse the repository at this point in the history
…pes.
  • Loading branch information
nicklucius committed Mar 16, 2017
1 parent 86c882a commit bdf2a8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-all.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ test_that("read Socrata CSV as default", {
test_that("read Socrata CSV from New Backend (NBE) endpoint", {
df <- read.socrata("https://odn.data.socrata.com/resource/pvug-y23y.csv")
expect_equal("data.frame", class(df), label="class", info="https://github.com/Chicago/RSocrata/issues/118")
expect_equal(68087, nrow(df), label="rows", info="https://github.com/Chicago/RSocrata/issues/118")
expect_equal(4, ncol(df), label="columns", info="https://github.com/Chicago/RSocrata/issues/118")
expect_equal(c("character", "character", "character", "numeric"),
expect_equal(c("character", "character", "integer", "character"),
unname(sapply(sapply(df, class),`[`, 1)),
label="testing column CSV classes with defaults")
})
Expand Down

0 comments on commit bdf2a8b

Please sign in to comment.