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.5.10 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.9 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.8 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.7 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.6 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.5 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.4 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.3 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.2 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.1 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.5.0 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.4.0 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.9 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.8 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.7 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.6 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.5 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.4 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.3 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.0.3.2 tracks/r/exercises/hello-world/test_hello-world.R