Reputation: 19
I stumbled upon this code in an open source Haskell project:
doVerifyTest i vector = testCase (show i) (True @=? actual)
where actual = RSA.verify (Just SHA1) (vectorToPublic vector) (msg vector) bs
Right bs = sig vector
What's the @=?
?
Upvotes: 1
Views: 158
Reputation: 4966
It's an infix operator defined in Test.HUnit.Base, quote:
Asserts that the specified actual value is equal to the expected value (with the expected value on the left-hand side).
Upvotes: 6