From 58bea2026a4d10d0f8b1da25768c9aea851d3ead Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Wed, 10 Jun 2020 20:23:46 +0200 Subject: [PATCH] Update a test --- tests/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib.rs b/tests/lib.rs index 3d8f636..8e45139 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -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);