@@ -17,7 +17,7 @@ def test_gri_lvl():
1717 )
1818 for lvl in range (16 ):
1919 for ofs in (- 2 , - 1 , 0 , 1 ):
20- featlen = 16 ** lvl + ofs
20+ featlen = 16 ** lvl + ofs
2121 tup = (420 , 420 + featlen , (0 - lvl if ofs < 1 else 0 - lvl - 1 ))
2222 con .execute ("INSERT INTO features VALUES(42,?,?,?)" , tup )
2323 con .executescript (
@@ -93,7 +93,7 @@ def test_abutment():
9393 pos0 = 10000000000
9494 for lvl in range (9 ):
9595 for ofs in (- 1 , 0 , 1 ):
96- for tup in ((pos0 - 16 ** lvl , pos0 + ofs ), (pos0 + 123 + ofs , pos0 + 123 + 16 ** 9 )):
96+ for tup in ((pos0 - 16 ** lvl , pos0 + ofs ), (pos0 + 123 + ofs , pos0 + 123 + 16 ** 9 )):
9797 con .execute ("INSERT INTO features VALUES(42,?,?)" , tup )
9898 con .executescript (
9999 genomicsqlite .create_genomic_range_index_sql (con , "features" , "rid" , "beg" , "end" )
@@ -431,7 +431,7 @@ def test_query_in_sql(tmp_path):
431431 results = list (
432432 con .execute ("SELECT * FROM genomic_range_rowids('empty', 'chr17', 43044294, 43048294)" )
433433 )
434- assert results == []
434+ assert not results
435435
436436
437437def _fill_exons (con , floor = None , table = "exons" , gri = True , len_gri = False ):
0 commit comments