Test File 1 test-hello-world.R

Summary

  • Number of test(s) : 2

  • Number of expectation(s) : 8

  • Number of successful expectation(s) : 5

  • Number of failed expectation(s) : 3

  • Number of errored expectation(s) : 0

  • Number of expectations with warning(s) : 0

  • Number of validated skip expectation(s) : 0

  • Number of skipped expectation(s) : 0

Details

Test Description Expectation Result Location Test_time
hello_world() works Testing that hello_world(“colin”) returns “Hello world, my name is colin!” expect_equal(hello_world(“colin”), “Hello world, my name is colin!”) Success test-hello-world.R#3 2023-08-08 19:24:49.039736
hello_world() works Testing that hello_world(“colin”) returns a character vector expect_is(hello_world(“colin”), “character”) Success test-hello-world.R#5 2023-08-08 19:24:49.252778
hello_world() works Testing that hello_world(“colin”) has World in it expect_match(hello_world(“colin”), “World”) Failure test-hello-world.R#7 2023-08-08 19:24:49.28449
hello_world() works Testing that hello_world(“colin”) has Hello in it expect_match(hello_world(“colin”), “Hello”) Success test-hello-world.R#9 2023-08-08 19:24:49.31144
hello_world() works with vectors Testing that hello_world(“colin”, “seb”) returns two elements expect_error(hello_world(“colin”, “seb”), 2) Failure test-hello-world.R#15 2023-08-08 19:24:49.34782
hello_world() works with vectors Testing that hello_world(c(“colin”, “seb”)) returns two elements expect_length(hello_world(c(“colin”, “seb”)), 2) Success test-hello-world.R#17 2023-08-08 19:24:49.374563
hello_world() works with vectors Testing that hello_world(LETTERS) returns 25 elements expect_length(hello_world(LETTERS), 25) Failure test-hello-world.R#19 2023-08-08 19:24:49.408705
hello_world() works with vectors Testing that hello_world(LETTERS) returns 26 elements expect_length(hello_world(LETTERS), 26) Success test-hello-world.R#21 2023-08-08 19:24:49.440684