Test File 2 test-times.R
Summary
Number of test(s) : 3
Number of expectation(s) : 14
Number of successful expectation(s) : 5
Number of failed expectation(s) : 3
Number of errored expectation(s) : 1
Number of expectations with warning(s) : 1
Number of validated skip expectation(s) : 1
Number of skipped expectation(s) : 3
Details
Test | Description | Expectation | Result | Location | Test_time |
---|---|---|---|---|---|
times() works | Testing that times(1, 3) returns 3 | expect_equal(times(1, 3), 3) | ✅ Success | test-times.R#3 | 2023-08-08 19:24:49.495121 |
times() works | Testing that times(1, “2”) fails | expect_error(times(1, “3”)) | ✅ Success | test-times.R#5 | 2023-08-08 19:24:49.536281 |
times() works | Testing that times(1, “a”) fails | expect_error(times(1, “a”)) | ✅ Success | test-times.R#7 | 2023-08-08 19:24:49.577532 |
times() works | Testing that times(1, 1:10) returns one number | expect_length(times(1, 1:10), 1) | ❌ Failure | test-times.R#9 | 2023-08-08 19:24:49.617864 |
times() works | Testing that times(1, 1:10) returns a vector | expect_is(times(1, 1:10),“vector”) | ❌ Failure | test-times.R#11 | 2023-08-08 19:24:49.658064 |
times() works | Testing that times(1, “3”) returns 3 | expect_equal(times(1, “3”), 3) | ❌ Error (test stopped) | test-times.R#13 | 2023-08-08 19:24:49.704204 |
times() works | NA (was skipped) | expect_equal(times(1, 1.5), 1.5) | 🔄 Skipped | test-times.R#15 | NA (was skipped) |
times() works with matrix | Testing that the matrix size is 10 for times(1:3, matrix(1:10)) | expect_length(times(1:3, matrix(1:10)), 10) | ⚠️ Warning | test-times.R#21 | 2023-08-08 19:24:49.745284 |
times() works with matrix | Testing that the matrix size is 10 for times(1:3, matrix(1:15)) | expect_length(times(1:3, matrix(1:15)), 10) | ❌ Failure | test-times.R#23 | 2023-08-08 19:24:49.781018 |
times() works with matrix | Testing that the matrix size is 10 for times(1:2, matrix(1:10)) | expect_length(times(1:2, matrix(1:10)), 10) | ✅ Success | test-times.R#25 | 2023-08-08 19:24:49.811556 |
times() works with {agivenpackage} | Testing that the length of iris is 5 | expect_length(iris, 5) | ✅ Success | test-times.R#30 | 2023-08-08 19:24:49.847435 |
times() works with {agivenpackage} | Skipping if {agivenpackage} is not installed | skip_if_not_installed(“agivenpackage”) | 🔄 Validated skip | test-times.R#33 | 2023-08-08 19:24:49.878581 |
times() works with {agivenpackage} | NA (was skipped) | expect_true(res$res) | 🔄 Skipped | test-times.R#36 | NA (was skipped) |
times() works with {agivenpackage} | NA (was skipped) | expect_length(iris, 5) | 🔄 Skipped | test-times.R#37 | NA (was skipped) |