Sha256: 93657fbfbb11cd92e0e1bc6cc4e6c7f67db46b58cc496ad1dc06962079c2a57f

Contents?: true

Size: 343 Bytes

Versions: 26

Compression:

Stored size: 343 Bytes

Contents

source("./hello-world.R")
library(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 for exercise: hello-world")

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
trackler-2.1.0.48 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.47 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.46 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.45 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.44 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.43 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.42 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.41 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.40 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.39 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.38 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.37 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.36 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.34 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.33 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.32 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.31 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.30 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.29 tracks/r/exercises/hello-world/test_hello-world.R
trackler-2.1.0.28 tracks/r/exercises/hello-world/test_hello-world.R