Write a test

  1. Change the test’s description and update the test.
test_that("strsplit1() splits a string", {
  expect_equal(strsplit1("a,b,c", split = ","), c("a", "b", "c"))
})
  1. Run the test by calling test() or check.
test()
# ℹ Testing regexcite
# ✔ | F W S  OK | Context
# ✔ |         1 | strsplit1 [0.1s]                                                        
# 
# ══ Results ═══════════════════════════════════════════════════
# Duration: 0.1 s
# 
# [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ]
# 
# 🔥 Your tests are lit 🔥