File: test_utils.R

package info (click to toggle)
r-cran-tinytest 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,072 kB
  • sloc: sh: 14; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9

expect_error(tinytest:::stopf("foo %s","bar"),"foo bar")

expect_equal(tinytest:::humanize(0.3,color=FALSE),"0.3s")
expect_equal(tinytest:::humanize(61,color=FALSE),"1m 1.0s")
expect_equal(tinytest:::humanize(3601,color=FALSE),"1h 0m 1.0s")