Skip to content

Commit c29ee9b

Browse files
committed
minor update tests
1 parent 004a26f commit c29ee9b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

test/TestTensorAlgebra/TensorAlgebra.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ end
1919
B = TensorValue(5.0, 6.0, 7.0, 8.0)
2020
u = VectorValue(1.0, 2.0)
2121
v = VectorValue(3.0, 4.0)
22-
@test u v == TensorValue(3.0, 6.0, 4.0, 8.0)
23-
@test u ₁² v == TensorValue(3.0, 6.0, 4.0, 8.0)
22+
@test u v == TensorValue(3.0, 6.0, 4.0, 8.0)
23+
@test u ₁² v == TensorValue(3.0, 6.0, 4.0, 8.0)
2424
@test A B == TensorValue(5.0, 10.0, 15.0, 20.0, 6.0, 12.0, 18.0, 24.0, 7.0, 14.0, 21.0, 28.0, 8.0, 16.0, 24.0, 32.0)
2525
@test A ₁₂³⁴ B == TensorValue(5.0, 10.0, 15.0, 20.0, 6.0, 12.0, 18.0, 24.0, 7.0, 14.0, 21.0, 28.0, 8.0, 16.0, 24.0, 32.0)
2626
@test A ₁₃²⁴ B == TensorValue(5.0, 10.0, 6.0, 12.0, 15.0, 20.0, 18.0, 24.0, 7.0, 14.0, 8.0, 16.0, 21.0, 28.0, 24.0, 32.0)
2727
@test A ₁₄²³ B == TensorValue(5.0, 10.0, 6.0, 12.0, 7.0, 14.0, 8.0, 16.0, 15.0, 20.0, 18.0, 24.0, 21.0, 28.0, 24.0, 32.0)
28-
@test u ₁²³ A == TensorValue{2,4}(1.0, 2.0, 2.0, 4.0, 3.0, 6.0, 4.0, 8.0)
29-
@test A ₁₂³ u == TensorValue{2,4}(1.0, 2.0, 3.0, 4.0, 2.0, 4.0, 6.0, 8.0)
30-
@test A ₁₃² u == TensorValue{2,4}(1.0, 2.0, 2.0, 4.0, 3.0, 4.0, 6.0, 8.0)
28+
@test u ₁²³ A == TensorValue{2,4}(1.0, 2.0, 2.0, 4.0, 3.0, 6.0, 4.0, 8.0)
29+
@test A ₁₂³ u == TensorValue{2,4}(1.0, 2.0, 3.0, 4.0, 2.0, 4.0, 6.0, 8.0)
30+
@test A ₁₃² u == TensorValue{2,4}(1.0, 2.0, 2.0, 4.0, 3.0, 4.0, 6.0, 8.0)
3131
end
3232

3333

@@ -79,6 +79,9 @@ end
7979
@test inner(H,A) == TensorValue(90.0, 100.0, 110.0, 120.0)
8080
@test inner(G,A) == VectorValue(50.0, 60.0)
8181
@test inner(G,V) == TensorValue(35.0, 46.0, 57.0, 68.0)
82+
@test H A == TensorValue(90.0, 100.0, 110.0, 120.0)
83+
@test G A == VectorValue(50.0, 60.0)
84+
@test G V == TensorValue(35.0, 46.0, 57.0, 68.0)
8285
end
8386

8487

0 commit comments

Comments
 (0)