diff --git a/DESCRIPTION b/DESCRIPTION index bc0249f..e6e3df0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: errorist Title: Automatically Search Errors or Warnings -Version: 0.1.0 +Version: 0.0.3 Authors@R: c( person("James", "Balamuta", email = "balamut2@illinois.edu", diff --git a/NEWS.md b/NEWS.md index fc54998..e45a4a5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,9 @@ -# errorist 0.1.0 +# errorist 0.0.3 -## Features +## Bug Fix -- TBA +- Address an erroneous unit test that was comparing functions within namespaces + instead of environments. # errorist 0.0.2 diff --git a/cran-comments.md b/cran-comments.md index 93beba0..4063fcf 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,15 +1,17 @@ ## Test environments -- local OS X install, R 3.5.2 -- ubuntu 14.04 (on travis-ci), R 3.5.2 +- local OS X install, R 3.6.2 +- ubuntu 14.04 (on travis-ci), R 3.6.2 - win-builder (devel and release) ## R CMD check results 0 errors | 0 warnings | 0 note -- This release is meant to resolve an import issue on the CRAN checks page. +- This release is meant to resolve an issue with one of the unit tests + on the CRAN checks page. +- ## Reverse dependencies -This is a new release, so there are no reverse dependencies. +There are no reverse dependencies. diff --git a/tests/testthat/test-handlers.R b/tests/testthat/test-handlers.R index e7a7a8b..cd4ace4 100644 --- a/tests/testthat/test-handlers.R +++ b/tests/testthat/test-handlers.R @@ -53,15 +53,11 @@ test_that("Check Output from Functions", { # Retrieve the function test_error_function = test_error_call[[1]] - # Retrieve function name space - # See: https://stackoverflow.com/a/6433626/1345455 - get_function_namespace = function(func) { getNamespaceName(environment(func)) } - expect_true(is.function(options_default_function), "Verify the default error handler is a function.") - expect_true(get_function_namespace(test_error_function) == - get_function_namespace(options_default_function) , + expect_true(identical(environment(test_error_function), + environment(options_default_function)), "Verify that test function call matches the default function's environment") expect_equal(test_error_function("toad"), options_default_function("toad"),