Rokunadishi
Rokunadishi

Reputation: 19

What does `@=?` do?

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

Answers (1)

Nearoo
Nearoo

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

Related Questions