Skip to content

Commit

Permalink
housekeeping for PR #142
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardszoecs committed Feb 3, 2018
1 parent 3d80c98 commit e46b492
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -11,6 +11,7 @@ BUG FIXES
* extr_num() did not work properly with decimal numbers [issue #136, reported and fixed by @stanstrup]
* cs_prop() failed when epi-suite data was not available [issue #139, reported and fixed by @stanstrup]
* cs_prop() failed with invalid html [issue #138, reported and fixed by @stanstrup]
* cs_prop() gave incorrect answer, if entries were not available [issue #142, reported and fixed by @stanstrup]
* is.smiles() failed because of changes in rcdk [PR #140, reported and fixed by @allaway]

DEPRECATED FUNCTIONS
Expand Down
16 changes: 15 additions & 1 deletion tests/testthat/test-chemspider.R
Expand Up @@ -81,7 +81,21 @@ test_that("cs_prop()", {
expect_true(nrow(m3$`21106900`$epi) == 0)

# issue #138 (invalid chemspider html)
expect_error(cs_prop(8012), NA)
m3 <- cs_prop(8012)
expect_is(m3, 'list')
expect_equal(length(m3), 1)
expect_equal(length(m3[[1]]), 3)
expect_is(m3[[1]]$epi, 'data.frame')
expect_is(m3[[1]]$acd, 'data.frame')

# issue #142
m4 <- cs_prop(391783)
expect_is(m4, 'list')
expect_equal(length(m4), 1)
expect_equal(length(m4[[1]]), 3)
expect_is(m4[[1]]$epi, 'data.frame')
expect_is(m4[[1]]$acd, 'data.frame')

})


Expand Down

0 comments on commit e46b492

Please sign in to comment.