Nothing
test_that("regex matches perfect example", {
expect_equal(unlist(revise:::extract_sections('<span id = "hai">works</span>', is_span = TRUE)), c("hai" = "works"))
})
test_that("regex matches weird spacing", {
expect_equal(unlist(
revise:::extract_sections('<span id ="hai">works</span>', is_span = TRUE)
), c("hai" = "works"))})
test_that("regex matches no spacing", {
expect_equal(unlist(
revise:::extract_sections('<span id="hai">works</span>', is_span = TRUE)
),
c("hai" = "works"))})
test_that("regex matches weird spacing 2", {
expect_equal(unlist(
revise:::extract_sections('<span id= "hai">works</span>', is_span = TRUE)
),
c("hai" = "works"))})
test_that("regex handles other attributes in span tag:", {
expect_equal(unlist(
revise:::extract_sections('<span style="color:blue" id= "hai">works</span>', is_span = TRUE)
),
c("hai" = "works"))})
test_that("regex handles different quotes:", {
expect_equal(unlist(
revise:::extract_sections("<span id= 'hai'>works</span>", is_span = TRUE)
),
c("hai" = "works"))
expect_equal(unlist(
revise:::extract_sections("<span id= \"hai\">works</span>", is_span = TRUE)
),
c("hai" = "works"))
expect_equal(unlist(
revise:::extract_sections("<span style=\"color:blue\" id= 'hai'>works</span>", is_span = TRUE)
),
c("hai" = "works"))
})
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.