test/factbase/test_query.rb in factbase-0.0.41 vs test/factbase/test_query.rb in factbase-0.0.42
- old
+ new
@@ -77,9 +77,10 @@
'(eq num (agg (exists oops) (count)))' => 2,
'(lt num (agg (eq num 0) (max pi)))' => 2,
'(eq time (min time))' => 1,
'(and (absent time) (exists pi))' => 1,
"(and (exists time) (not (\t\texists pi)))" => 1,
+ '(undef something)' => 3,
"(or (eq num +66) (lt time #{(Time.now - 200).utc.iso8601}))" => 1
}.each do |q, r|
assert_equal(r, Factbase::Query.new(maps, Mutex.new, q).each.to_a.size, q)
end
end