mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
Update a test
This commit is contained in:
parent
e8e6be0ce9
commit
58bea2026a
@ -12,11 +12,11 @@ fn connection_changes() {
|
||||
assert_eq!(connection.changes(), 1);
|
||||
assert_eq!(connection.total_changes(), 1);
|
||||
|
||||
ok!(connection.execute("UPDATE users SET name = 'Bob' WHERE id = 1"));
|
||||
ok!(connection.execute("INSERT INTO users VALUES (2, 'Bob', NULL, NULL, NULL)"));
|
||||
assert_eq!(connection.changes(), 1);
|
||||
assert_eq!(connection.total_changes(), 2);
|
||||
|
||||
ok!(connection.execute("INSERT INTO users VALUES (2, 'Bob', NULL, NULL)"));
|
||||
ok!(connection.execute("UPDATE users SET name = 'Bob' WHERE id = 1"));
|
||||
assert_eq!(connection.changes(), 1);
|
||||
assert_eq!(connection.total_changes(), 3);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user