Nothing
describe("expression_to_pattern", {
it("should convert an expression to a pattern that detects parameters", {
# Arrange
expression <- "word {string} word"
parameters <- .parameters(
.parameter(
name = "string",
regex = "[^\"]*",
transformer = as.character
)
)
# Act
result <- expression_to_pattern(expression, parameters)
# Assert
expect_equal(result, "word ([^\"]*) word")
})
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.