Skip to content

Commit

Permalink
add test for false values
Browse files Browse the repository at this point in the history
  • Loading branch information
yukikaoru committed Aug 4, 2020
1 parent c649069 commit 7605170
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,8 @@ def test_range演算子は比較演算子の境界を含むかどうかを選択
assert operator.query() == "(range field=foo {,34})"
operator = Range(field="foo", min=12, maxbound=True)
assert operator.query() == "(range field=foo [12,})"


def test_range演算子はNoneの指定のみを省略と見なす():
assert Range(field="foo", min=0, max=10).query() == "(range field=foo [0,10})"
assert Range(field="foo", min="", max="10").query() == "(range field=foo ['','10'})"

0 comments on commit 7605170

Please sign in to comment.