aboutsummaryrefslogtreecommitdiffstats
path: root/prog/expr_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-27 14:23:08 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-05-27 13:05:20 +0000
commit8bbf94ce31b652c168de6ea784942b54ea09e80c (patch)
tree55bb8625c738e8b917384334437a5cd83b8247b1 /prog/expr_test.go
parent3eba45d51db7adab6fb1d3c7e71d699ca6bea4b3 (diff)
prog: make minimization parameters explicit
Add an explicit parameter to only run call removal.
Diffstat (limited to 'prog/expr_test.go')
-rw-r--r--prog/expr_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/expr_test.go b/prog/expr_test.go
index 8188436e1..bdb4201dd 100644
--- a/prog/expr_test.go
+++ b/prog/expr_test.go
@@ -186,7 +186,7 @@ func TestConditionalMinimize(t *testing.T) {
assert.NoError(tt, err)
p, err := target.Deserialize([]byte(test.input), Strict)
assert.NoError(tt, err)
- p1, _ := Minimize(p, 0, false, test.pred)
+ p1, _ := Minimize(p, 0, MinimizeParams{}, test.pred)
res := p1.Serialize()
assert.Equal(tt, test.output, strings.TrimSpace(string(res)))
})