Skip to content

patrick 0.3.0

Latest
Compare
Choose a tag to compare
@michaelquinn32 michaelquinn32 released this 08 Mar 23:27
  • Patrick can build test names as {glue}-formatted strings, e.g.

    with_parameters_test_that(
      "col2hex works for color {color_name}",
      {
        expect_equal(col2hex(color_name), color_hex)
      },
      color_name = c("red", "blue", "black"),
      color_hex = c("#FF0000", "#0000FF", "#000000")
    )

    This also works for supplying such a formatted string as .test_name.

    To disable this behavior, use .interpret_glue = FALSE.

    Thanks @chiricom!