@@ -1595,36 +1595,44 @@ end
15951595 end
15961596 end
15971597
1598- for x= 0 : 5 , y= 1 : 5
1599- @test div (UInt (x),UInt (y)) == div (x,y)
1600- @test div (UInt (x),y) == div (x,y)
1601- @test div (x,UInt (y)) == div (x,y)
1602- @test div (UInt (x),- y) == reinterpret (UInt,div (x,- y))
1603- @test div (- x,UInt (y)) == div (- x,y)
1604-
1605- @test fld (UInt (x),UInt (y)) == fld (x,y)
1606- @test fld (UInt (x),y) == fld (x,y)
1607- @test fld (x,UInt (y)) == fld (x,y)
1608- @test fld (UInt (x),- y) == reinterpret (UInt,fld (x,- y))
1609- @test fld (- x,UInt (y)) == fld (- x,y)
1610-
1611- @test cld (UInt (x),UInt (y)) == cld (x,y)
1612- @test cld (UInt (x),y) == cld (x,y)
1613- @test cld (x,UInt (y)) == cld (x,y)
1614- @test cld (UInt (x),- y) == reinterpret (UInt,cld (x,- y))
1615- @test cld (- x,UInt (y)) == cld (- x,y)
1616-
1617- @test rem (UInt (x),UInt (y)) == rem (x,y)
1618- @test rem (UInt (x),y) == rem (x,y)
1619- @test rem (x,UInt (y)) == rem (x,y)
1620- @test rem (UInt (x),- y) == rem (x,- y)
1621- @test rem (- x,UInt (y)) == rem (- x,y)
1622-
1623- @test mod (UInt (x),UInt (y)) == mod (x,y)
1624- @test mod (UInt (x),y) == mod (x,y)
1625- @test mod (x,UInt (y)) == mod (x,y)
1626- @test mod (UInt (x),- y) == mod (x,- y)
1627- @test mod (- x,UInt (y)) == mod (- x,y)
1598+ @test isnan (mod (NaN , Inf ))
1599+ @test isnan (mod (NaN , - Inf ))
1600+ for x= 0 : 5
1601+ @test mod (x, Inf ) == x
1602+ @test mod (x, - Inf ) == x
1603+ @test mod (- x, Inf ) == - x
1604+ @test mod (- x, - Inf ) == - x
1605+ for y= 1 : 5
1606+ @test div (UInt (x),UInt (y)) == div (x,y)
1607+ @test div (UInt (x),y) == div (x,y)
1608+ @test div (x,UInt (y)) == div (x,y)
1609+ @test div (UInt (x),- y) == reinterpret (UInt,div (x,- y))
1610+ @test div (- x,UInt (y)) == div (- x,y)
1611+
1612+ @test fld (UInt (x),UInt (y)) == fld (x,y)
1613+ @test fld (UInt (x),y) == fld (x,y)
1614+ @test fld (x,UInt (y)) == fld (x,y)
1615+ @test fld (UInt (x),- y) == reinterpret (UInt,fld (x,- y))
1616+ @test fld (- x,UInt (y)) == fld (- x,y)
1617+
1618+ @test cld (UInt (x),UInt (y)) == cld (x,y)
1619+ @test cld (UInt (x),y) == cld (x,y)
1620+ @test cld (x,UInt (y)) == cld (x,y)
1621+ @test cld (UInt (x),- y) == reinterpret (UInt,cld (x,- y))
1622+ @test cld (- x,UInt (y)) == cld (- x,y)
1623+
1624+ @test rem (UInt (x),UInt (y)) == rem (x,y)
1625+ @test rem (UInt (x),y) == rem (x,y)
1626+ @test rem (x,UInt (y)) == rem (x,y)
1627+ @test rem (UInt (x),- y) == rem (x,- y)
1628+ @test rem (- x,UInt (y)) == rem (- x,y)
1629+
1630+ @test mod (UInt (x),UInt (y)) == mod (x,y)
1631+ @test mod (UInt (x),y) == mod (x,y)
1632+ @test mod (x,UInt (y)) == mod (x,y)
1633+ @test mod (UInt (x),- y) == mod (x,- y)
1634+ @test mod (- x,UInt (y)) == mod (- x,y)
1635+ end
16281636 end
16291637
16301638 @test div (typemax (UInt64) , 1 ) == typemax (UInt64)
0 commit comments