File: test_gh_issue_32.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 (12 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12

out <- ignore(expect_equal)("foo","bar")
# Message should read 'Expected "target" got "current"',
# not the other way around
expect_true(grepl("bar.+foo",attr(out,"diff")))

out <- ignore(expect_identical)("foo","bar")
expect_true(grepl("bar.+foo",attr(out,"diff")))

out <- ignore(expect_equivalent)("foo","bar")
expect_true(grepl("bar.+foo",attr(out,"diff")))