Skip to content

Commit 2d91ae2

Browse files
committed
- adds a check that exporting the single case reads back in and has identical contents
- -
1 parent a5bafe9 commit 2d91ae2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/testthat/test-gocats.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,9 @@ test_that("json exporting and importing works properly", {
104104
annotation_2_json(without_namespace2, json_file = "test_small.json")
105105
line_data = base::readLines("test_small.json", 20)
106106
expect_true(grepl("\\[.*\\]", line_data[3]))
107+
108+
without_namespace2@counts[1] = 1
109+
in_annotation = json_2_annotation("test_small.json")
110+
expect_equal(without_namespace2, in_annotation)
107111
})
108112
})

0 commit comments

Comments
 (0)