mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-03-16 22:20:31 +00:00
Added test for min and max values of a float field.
This commit is contained in:
parent
fdc91c6892
commit
0bea487560
1 changed files with 4 additions and 0 deletions
|
|
@ -572,6 +572,10 @@ class BackendFeaturesTestCase(HaystackBackendTestCase, TestCase):
|
|||
'Xapian::Query(VALUE_RANGE 11 %012d 000000000010)' % (-sys.maxsize - 1))
|
||||
self.assertEqual(str(self.backend.parse_query('number:10..*')),
|
||||
'Xapian::Query(VALUE_RANGE 11 000000000010 %012d)' % sys.maxsize)
|
||||
self.assertEqual(str(self.backend.parse_query('float_number:25.5..*')),
|
||||
b'Xapian::Query(VALUE_RANGE 7 \xb2` \xff\xff\xff\xff\xff\xff\xff\xff\xff)')
|
||||
self.assertEqual(str(self.backend.parse_query('float_number:..25.5')),
|
||||
b'Xapian::Query(VALUE_RANGE 7 \xb2`)')
|
||||
self.assertEqual(str(self.backend.parse_query('float_number:25.5..100.0')),
|
||||
b'Xapian::Query(VALUE_RANGE 7 \xb2` \xba@)')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue