Skip to content

Commit 0c2d979

Browse files
committed
Add tests for div with literals
1 parent 68a6bcd commit 0c2d979

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/DualTest.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ for N in (0,3), M in (0,4), V in (Int, Float32)
137137
@test round(NESTED_FDNUM) === round(PRIMAL)
138138

139139
@test div(FDNUM, FDNUM2) === div(PRIMAL, PRIMAL2)
140+
@test div(FDNUM, PRIMAL2) === div(PRIMAL, PRIMAL2)
141+
@test div(PRIMAL, FDNUM2) === div(PRIMAL, PRIMAL2)
142+
140143
@test div(NESTED_FDNUM, NESTED_FDNUM2) === div(PRIMAL, PRIMAL2)
144+
@test div(NESTED_FDNUM, PRIMAL2) === div(PRIMAL, PRIMAL2)
145+
@test div(PRIMAL, NESTED_FDNUM2) === div(PRIMAL, PRIMAL2)
141146

142147
if VERSION v"1.4"
143148
@test div(FDNUM, FDNUM2, RoundUp) === div(PRIMAL, PRIMAL2, RoundUp)

0 commit comments

Comments
 (0)