Skip to content

Commit 956dfdb

Browse files
committed
Add more complicated test of cyclic sorting in trace.
1 parent 6f67f51 commit 956dfdb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/implicit.cdb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,17 @@ def test14():
182182

183183
test14()
184184

185+
def test15():
186+
__cdbkernel__=create_scope()
187+
{\mu,\nu,\rho}::Indices(vector).
188+
{a^{\mu},b^{\mu},c^{\mu}}::NonCommuting.
189+
tr{#}::Trace.
190+
ex:=tr(a^{\mu} b^{\nu} c^{\rho} a^{\mu} b^{\rho} c^{\nu}+b^{\mu} c^{\nu} a^{\rho} b^{\nu} c^{\mu} a^{\rho}+c^{\mu} a^{\nu} b^{\mu} c^{\rho} a^{\nu} b^{\rho});
191+
sort_product(_)
192+
rename_dummies(_)
193+
tst:= 3 tr( a^{\mu} b^{\nu} c^{\rho} a^{\mu} b^{\rho} c^{\nu} ) - @(ex);
194+
assert(tst==0)
195+
print("Test 15 passed")
196+
197+
test15()
198+

0 commit comments

Comments
 (0)