Sha256: 52a38423de76d8288e3a1dd12033cead0c60067d7956650915ff90d3d6a07a2c

Contents?: true

Size: 354 Bytes

Versions: 87

Compression:

Stored size: 354 Bytes

Contents

source('./hello_world.R')
suppressPackageStartupMessages({ require(testthat) })

test_that("no name", {
  expect_equal(hello_world(), "Hello, World!")
})

test_that("sample name", {
  expect_equal(hello_world("Alice"), "Hello, Alice!")
})

test_that("other sample name", {
  expect_equal(hello_world("Bob"), "Hello, Bob!")
})

print("All tests passed!")

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
trackler-2.0.6.31 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.30 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.29 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.28 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.27 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.26 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.25 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.24 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.23 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.22 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.21 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.20 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.19 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.18 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.17 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.16 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.15 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.14 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.13 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.6.12 tracks/r/exercises/hello-world/test_hello-world.R