@@ -775,25 +775,6 @@ class ExpressionEvaluationSuite extends FunSuite {
775775 checkEvaluation(~ c1, - 2 , row)
776776 }
777777
778- /*
779- * Testing the DSL conversions which allow literals on the left hand
780- * side of an expression. Note: the DSL conversions collide with
781- * the scalatest === operator. But we can apply the scalatest
782- * conversion explicitly:
783- * assert(X === Y) --> assert(EQ(X).===(Y))
784- */
785- import org .scalatest .Assertions .{convertToEqualizer => EQ }
786- test(" recognizes literals on the left" ) {
787- assert(EQ (- 1 + ' x ).=== (Add (- 1 , ' x )))
788- assert(EQ (0 < ' x ).=== (LessThan (0 , ' x )))
789- assert(EQ (1.5 -=- ' x ).=== (EqualTo (1.5 , ' x )))
790- assert(EQ (false !== ' x ).=== (Not (EqualTo (false , ' x ))))
791- assert(EQ (" a string" >= ' x ).=== (GreaterThanOrEqual (" a string" , ' x )))
792- assert(EQ (RichDate (" 2014-11-05" ) > ' date ).=== (GreaterThan (RichDate (" 2014-11-05" ), ' date )))
793- assert(EQ (RichTimestamp (" 2014-11-05 12:34:56.789" ) < ' now )
794- .=== (LessThan (RichTimestamp (" 2014-11-05 12:34:56.789" ), ' now )))
795- }
796-
797778 test(" comparison operators for RichDate and RichTimestamp" ) {
798779 assert(EQ (RichDate (" 2014-11-05" ) < RichDate (" 2014-11-06" )).=== (true ))
799780 assert(EQ (RichDate (" 2014-11-05" ) <= RichDate (" 2013-11-06" )).=== (false ))
0 commit comments