Skip to content

Commit 3598aa6

Browse files
author
Kasper Peeters
committed
Add another test for the bug fix in the previous commit.
1 parent e2b7489 commit 3598aa6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tests/canonicalise.cdb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,14 +908,27 @@ def test60():
908908
test60()
909909

910910
def test61():
911+
__cdbkernel__=create_scope()
911912
{a,b,c,d#}::Indices(position=independent).
912913
\bar{#}::Accent.
913914
\bar{A}_{a b}::Symmetric.
914915
\bar{A}^{a b}::Symmetric.
915916
ex := \bar{A}_{a b} \bar{A}^{b a};
916-
canonicalise (ex);
917+
canonicalise (ex)
917918
tst:= \bar{A}_{a b} \bar{A}^{a b} - @(ex);
918919
assert(tst==0)
919920
print("Test 61 passed")
920921

921922
test61()
923+
924+
def test62():
925+
__cdbkernel__=create_scope()
926+
{\bar{\epsilon}_{\mu \nu \rho}, \bar{\epsilon}^{\mu \nu \rho}}::AntiSymmetric;
927+
ex := \bar{\gamma}^{\sigma \kappa} \bar{\epsilon}_{\mu \kappa \nu} - \bar{\gamma}^{\sigma \kappa} \bar{\epsilon}_{\mu \nu \kappa};
928+
canonicalise(ex)
929+
tst:= -2\bar{\gamma}^{\sigma\kappa} \bar{\epsilon}_{\mu\nu\kappa} - @(ex);
930+
assert(tst==0)
931+
print("Test 62 passed")
932+
933+
test62()
934+

0 commit comments

Comments
 (0)