tests/testthat/test-add_mesh_primitive.R

test_that("add_mesh_primitive works", {
  iris_mvdf <- mvdf_obj(iris, Sepal.Width, Sepal.Length, Petal.Length)
  expect_equal(
    add_blender_endmatter(
      add_mesh_primitive(
        create_blender_frontmatter(),
        iris_mvdf,
        "ico_sphere"
      ),
      filepath = "tmp.blend"
    ),
    gsub(
      "\\r", "",
      readChar(
        "testdata/mesh_prim.txt",
        file.info("testdata/mesh_prim.txt")$size
      )
    )
  )
})
mikemahoney218/mvdf documentation built on May 7, 2021, 11:46 a.m.