Skip to content

Commit e83f6d8

Browse files
committed
change to use matchlamnbda
1 parent 2f4ae24 commit e83f6d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nons-test/test/lib/math/tensor.egi

+3-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ assertEqual("append indices with ...",
5959
show([| [| 1, 1 |], [| 1, 1 |] |]_i_j))
6060

6161
assertEqual("generate_tensor by using function expr",
62-
letrec g__ = generateTensor(($a $b ->
63-
match (a, b) as (integer, integer)
64-
| ($n, n) -> function(x, y, z)
65-
| (_, _) -> 0),
62+
letrec g__ = generateTensor(matchLambda as (integer, integer)
63+
| ($n, n) -> function(x, y, z)
64+
| (_, _) -> 0,
6665
[3, 3]) in
6766
show(withSymbols {i, j} d/d(g_i_j, x)),
6867
"[| [| g_1_1|x 0 0 |] [| 0 g_2_2|x 0 |] [| 0 0 g_3_3|x |] |]")

0 commit comments

Comments
 (0)