Skip to content

Commit 29b881b

Browse files
committed
Corrected errors in tests.
1 parent 13d5e9f commit 29b881b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/TensorValuesTests/OperationsTests.jl

+9-9
Original file line numberDiff line numberDiff line change
@@ -224,29 +224,29 @@ c = a ⋅ st
224224
r = VectorValue(14,30,42)
225225
@test c == r
226226

227-
a = VectorValue(1,0)
228-
b = VectorValue(1,2)
227+
a1 = VectorValue(1,0)
228+
b1 = VectorValue(1,2)
229229

230-
t = ThirdOrderTensorValue{2,2,1}(1,2,3,4)
231-
t1 = TensorValue(1,0,0,1)
232-
t2 = TensorValue(1,2,0,0)
230+
t1 = ThirdOrderTensorValue{2,2,1}(1,2,3,4)
231+
t2 = TensorValue(1,0,0,1)
232+
t3 = TensorValue(1,2,0,0)
233233

234-
c = a t
234+
c = a1 t1
235235
@test isa(c,TensorValue{2,1,Int})
236236
r = TensorValue{2,1}(1,3)
237237
@test c == r
238238

239-
c = b t
239+
c = b1 t1
240240
@test isa(c,TensorValue{2,1,Int})
241241
r = TensorValue{2,1}(5,11)
242242
@test c == r
243243

244-
c = t1 t
244+
c = t2 t1
245245
@test isa(c,ThirdOrderTensorValue{2,2,1,Int,4})
246246
r = ThirdOrderTensorValue{2,2,1}(1,2,3,4)
247247
@test c == r
248248

249-
c = t2 t
249+
c = t3 t1
250250
@test isa(c,ThirdOrderTensorValue{2,2,1,Int,4})
251251
r = ThirdOrderTensorValue{2,2,1}(1,2,3,6)
252252
@test c == r

0 commit comments

Comments
 (0)