expr_test.go: fixed test expression
This commit is contained in:
parent
53dacd5332
commit
51e740d243
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user