What is the === (triple-equals) operator in Scala Koans?

This is the triple-equals operator from ScalaTest. Have a look at this page: Getting Started with FunSuite. It says:

ScalaTest lets you use Scala’s assertion syntax, but defines a triple
equals operator (===) to give you better error messages. The following
code would give you an error indicating only that an assertion failed:

assert(1 == 2)

Using triple equals instead would give you the more informative error
message, “1 did not equal 2”:

assert(1 === 2)

Leave a Comment