test_that("xsd_convert(x, idcols) works", { expect_equal(xsd_convert(TRUE), "\"TRUE\"^^") expect_equal(xsd_convert(defined (x = 2:4, label = "test")), c('\"2\"^^', '\"3\"^^', '\"4\"^^')) expect_equal(xsd_convert(head(iris)[1,1]), '\"5.1\"^^') expect_equal(unlist(xsd_convert(x=head(iris_dataset), idcol=1)[1,2]), c(Sepal.Length = '\"5.1\"^^' )) })