MCPcopy Create free account
hub / github.com/github/gh-aw / TestOptimizeNot_TripleNegation

Function TestOptimizeNot_TripleNegation

pkg/workflow/expression_optimizer_test.go:136–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

134}
135
136func TestOptimizeNot_TripleNegation(t *testing.T) {
137 // !!!X → !X
138 inner := prop("github.event_name")
139 node := not1(not1(not1(inner)))
140 // !!!X = !!(! X) → !X
141 assertRender(t, "!(github.event_name)", node, "!!!X → !X")
142}
143
144func TestOptimizeNot_QuadrupleNegation(t *testing.T) {
145 // !!!!X → X

Callers

nothing calls this directly

Calls 3

propFunction · 0.85
not1Function · 0.85
assertRenderFunction · 0.85

Tested by

no test coverage detected