All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3.banana.SpecLiteExtra.scala Maven / Gradle / Ivy

package org.w3.banana

import zcheck.SpecLite

trait SpecLiteExtra { self: SpecLite =>

  class AnyOps2[A](actual: => A) {

    def must_not_==(expected: A): Unit = {
      val act = actual
      def test = expected != act
      def koMessage = "%s == %s".format(act, expected)
      if (!test)
        fail(koMessage)
    }

  }

  implicit def enrichAny2[A](actual: => A): AnyOps2[A] = new AnyOps2(actual)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy