fix: tests

fix: arithmeticRight
This commit is contained in:
Patrick 2025-04-15 10:47:11 +02:00
parent 19b469d1b3
commit fb68031848
No known key found for this signature in database
GPG key ID: 451F95EFB8BECD0F
5 changed files with 101 additions and 3 deletions

View file

@ -393,6 +393,7 @@ block ./shift.nix [
(it "negative logical right shift 21068 >> 0" (logicalRight 0 (-21068) == -21068))
(it "arithmetic right shift 21068 >> 0" (arithmeticRight 0 21068 == 21068))
(it "negative arithmetic right shift 21068 >> 0" (arithmeticRight 0 (-21068) == -21068))
(it "arithmetic right shift -1 >> 32" (arithmeticRight 32 (-1) == (-1)))
(it "arithmetic right shift -1 >> 102" (arithmeticRight 102 (-1) == (-1)))
])
]