Created
August 15, 2019 16:07
-
-
Save deusaquilus/b3556a72571a142f40b364de60fcc397 to your computer and use it in GitHub Desktop.
Scalatest - Compare Quill AST Opinions Neutralized
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit def astEq[T <: io.getquill.ast.Ast](implicit tt: scala.reflect.runtime.universe.TypeTag[T]) = | |
new Equality[T] { | |
def areEqual(a: T, b: Any): Boolean = | |
b match { | |
case p: io.getquill.ast.Ast => p.neutralize == a.neutralize | |
case _ => false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment