Skip to content

Commit

Permalink
[wip] problem with C compiler naming collision seems solved by cleanu…
Browse files Browse the repository at this point in the history
…p in previous commit/s
  • Loading branch information
michaelsbradleyjr committed Jul 21, 2022
1 parent 5ea8ca3 commit 6ef19c4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/datastore/test_sqlite_datastore.nim
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

# see https://sqlite.org/lang_select.html#the_order_by_clause
# If a SELECT statement that returns more than one row does not have an
Expand All @@ -425,9 +425,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key1, data: bytes1),
Expand All @@ -444,9 +444,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key7, data: bytes7),
Expand All @@ -463,9 +463,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key2, data: bytes2)
Expand All @@ -477,9 +477,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key8, data: bytes8)
Expand All @@ -491,9 +491,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key2, data: bytes2),
Expand All @@ -508,9 +508,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key2, data: bytes2),
Expand All @@ -527,9 +527,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key4, data: bytes4),
Expand All @@ -543,9 +543,9 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds.sortedByIt(it.key.id) == @[
(key: key4, data: bytes4)
Expand Down Expand Up @@ -585,8 +585,8 @@ suite "SQLiteDatastore":

for kd in ds.query(Query.init(queryKey)):
let
(k, d) = await kd
(key, data) = await kd

kds.add((key: k, data: d))
kds.add (key, data)

check: kds == emptyKds

0 comments on commit 6ef19c4

Please sign in to comment.