Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package info.pandanote.test
import org.scalatest.Assertions
import org.scalatest._
class ComplexNumberTest extends FlatSpec with Matchers {
"a" should "123" in {
val a = "123"
a should be("123")
"a*a" should "-3+4i" in {
val a = ComplexNumber(1,2)
a*a should be(ComplexNumber(-3,4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.