From 51e740d243e4dc6951a60008763499bfa201edc9 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sat, 13 Apr 2024 22:14:28 +0200 Subject: [PATCH] expr_test.go: fixed test expression --- expr_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expr_test.go b/expr_test.go index 516bba4..da758fc 100644 --- a/expr_test.go +++ b/expr_test.go @@ -18,7 +18,7 @@ func TestExpr(t *testing.T) { } 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