expr_test.go: fixed test expression

This commit is contained in:
Celestino Amoroso 2024-04-13 22:14:28 +02:00
parent 53dacd5332
commit 51e740d243

View File

@ -18,7 +18,7 @@ func TestExpr(t *testing.T) {
} }
inputs := []inputType{ inputs := []inputType{
/* 1 */ {`fact=func(n){(n)?{1}::{fact(n-1)}}; fact(2)`, int64(2), nil}, /* 1 */ {`fact=func(n){(n)?{1}::{n*fact(n-1)}}; fact(5)`, int64(120), nil},
} }
succeeded := 0 succeeded := 0