44
55test_that(" local edge/glyph registries exist for tests" , {
66 # Minimal registries for tests
7- .edge_ops_get << - function () c(" %-->%" , " %<--%" )
8- .glyph_map_get << - function () list (" %-->%" = " -->" , " %<--%" = " <--" )
7+ .edge_ops_get <- function () c(" %-->%" , " %<--%" )
8+ .glyph_map_get <- function () list (" %-->%" = " -->" , " %<--%" = " <--" )
99
1010 expect_type(.edge_ops_get(), " character" )
1111 expect_true(" %-->%" %in% .edge_ops_get())
1212 expect_equal(.glyph_map_get()[[" %-->%" ]], " -->" )
13+ reset_caugi_registry()
1314})
1415
1516# ──────────────────────────────────────────────────────────────────────────────
@@ -50,6 +51,7 @@ test_that(".contains_edge handles parentheses and returns FALSE otherwise", {
5051# ──────────────────────────────────────────────────────────────────────────────
5152
5253test_that(" .glyph_of returns correct glyph" , {
54+ reset_caugi_registry()
5355 expect_equal(.glyph_of(as.symbol(" %-->%" )), " -->" )
5456 expect_equal(.glyph_of(as.symbol(" %---%" )), " ---" )
5557 expect_equal(.glyph_of(as.symbol(" %<->%" )), " <->" )
@@ -67,6 +69,7 @@ test_that(".glyph_of returns correct glyph", {
6769 flags = " TRAVERSABLE_WHEN_CONDITIONED"
6870 )
6971 expect_equal(.glyph_of(as.symbol(" %<--%" )), " <--" )
72+ reset_caugi_registry()
7073})
7174
7275test_that(" .glyph_of returns NULL for unknown operator" , {
0 commit comments