tests/testthat/test_svg.R

library(two.laws.html)

SetTestContext("svg")

CreateTestCase(
  "Empty svg tags",
  {
    Html <- str_RemoveWhitespace(
      as.character(withTags(svg(g())))
    )

    expect_equal(
      Html,
      "<svg><g></g></svg>"
    )
  }
)
mikebesso/two.laws.html documentation built on May 29, 2019, 5:43 a.m.