Aggregated failures and errors
The expectation has not been validated, or the code has generated an error.
Location | Test | Description | Expectation | Message |
---|---|---|---|---|
test-hello-world.R#7 | hello_world() works | Testing that hello_world(“colin”) has World in it | expect_match(hello_world(“colin”), “World”) | hello_world\("colin"\) does not match “World”. Actual value: “Hello world, my name is colin!” |
test-hello-world.R#15 | hello_world() works with vectors | Testing that hello_world(“colin”, “seb”) returns two elements | expect_error(hello_world(“colin”, “seb”), 2) | hello_world("colin", "seb") threw an error with unexpected message. Expected match: “2” Actual message: “unused argument ("seb")” |
test-hello-world.R#19 | hello_world() works with vectors | Testing that hello_world(LETTERS) returns 25 elements | expect_length(hello_world(LETTERS), 25) | hello_world(LETTERS) has length 26, not length 25. |
test-times.R#9 | times() works | Testing that times(1, 1:10) returns one number | expect_length(times(1, 1:10), 1) | times(1, 1:10) has length 10, not length 1. |
test-times.R#11 | times() works | Testing that times(1, 1:10) returns a vector | expect_is(times(1, 1:10),“vector”) | times(1, 1:10) inherits from 'numeric' not 'character' . |
test-times.R#13 | times() works | Testing that times(1, “3”) returns 3 | expect_equal(times(1, “3”), 3) | Error in a * b : non-numeric argument to binary operator |
test-times.R#23 | 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) | times(1:3, matrix(1:15)) has length 15, not length 10. |