inst/tinytest/test_sx.R

expect_equal(
  sx('1 2 "c", d'), c("1", "2", "c", "d")
)

expect_equal(
  sx('1 2 3'), c("1", "2", "3")
)

expect_equal(
  sx('1 2 "3"'), c("1", "2", "3")
)

expect_equal(
  sx('1,2|3.4'), c("1", "2", "3.4")
)

expect_equal(
  sx('01 02'), c("01", "02")
)

expect_equal(
  sx('0x3 0z3'), c("0x3", "0z3")
)

Try the wrapr package in your browser

Any scripts or data that you put into this service are public.

wrapr documentation built on Aug. 20, 2023, 1:08 a.m.