mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
updates
This commit is contained in:
parent
7f47409e60
commit
da29ace630
5 changed files with 158 additions and 18 deletions
|
|
@ -119,7 +119,7 @@ def tests_command(file_path):
|
|||
|
||||
tests = [
|
||||
json.loads(row["data"])
|
||||
for row in db.execute("select data from tests limit 2000").fetchall()
|
||||
for row in db.execute("select data from tests").fetchall()
|
||||
]
|
||||
|
||||
num_or_skips = 0
|
||||
|
|
@ -179,8 +179,8 @@ def tests_command(file_path):
|
|||
== diff["values_changed"][bkey]["new_value"]
|
||||
)
|
||||
elif len(keys_changed) == 1:
|
||||
v = int(akey.lstrip("root[").rstrip("]"))
|
||||
assert v == len(expected_closest_ids)
|
||||
v = int(keys_changed[0].lstrip("root[").rstrip("]"))
|
||||
assert (v + 1) == len(expected_closest_ids)
|
||||
else:
|
||||
raise Exception("fuck")
|
||||
num_1off_errors += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue