use Test::More qw(no_plan);
use Data::Query::ExprBuilder::Identifier;
use Data::Query::Constants qw(DQ_IDENTIFIER DQ_OPERATOR DQ_VALUE);
+use Test::Exception;
sub expr (&) {
_mk_expr($_[0]);
],
},
'Operand reversed equality ok';
+
+throws_ok {
+ expr { $_->foo <=> 3 }
+} qr/\QCan't use operator <=>/, 'Exception on bad operator';