tests/testthat/test-xml_parser.R

context("test-xml_parser")

test_that("multiplication works", {
  expect_error(
    fgd_line_parse(
      system.file("extdata/FG-GML-000000-AdmPt-dummy.xml",
                  package = "fgdr")))
  res <-
    fgd_point_parse(
      system.file("extdata/FG-GML-000000-AdmPt-dummy.xml",
                  package = "fgdr"))
  expect_is(res, "list")
  expect_length(res, 1L)
})

Try the fgdr package in your browser

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

fgdr documentation built on March 18, 2022, 6:46 p.m.