tests/testthat/test-snapshot-variants.R

test_that("yaml12 snapshots select the emitter contract", {
  expect_identical(yaml12_snapshot_variant("0.1.0"), "yaml12-0.1")
  expect_identical(yaml12_snapshot_variant("0.1.0.9000"), "yaml12-0.2")
  expect_identical(yaml12_snapshot_variant("0.2.0"), "yaml12-0.2")
})

Try the Rapp package in your browser

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

Rapp documentation built on Aug. 25, 2026, 1:08 a.m.