summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2020-07-01 16:38:18 +0200
committerChristian Schneider2020-07-01 16:38:18 +0200
commitc4c23f6b0ea5c68e266ad0791a2a22fd3456e643 (patch)
tree9eba2092f276f46d2c9ab8a5125757cb24cc71c4
parent083296d689e4a40dc0bebb0a6f69c8342d6d3a2e (diff)
downloaditools-c4c23f6b0ea5c68e266ad0791a2a22fd3456e643.tar.gz
itools-c4c23f6b0ea5c68e266ad0791a2a22fd3456e643.tar.bz2
itools-c4c23f6b0ea5c68e266ad0791a2a22fd3456e643.zip
Simplify test, was under the wrong assumption that is() uses == instead of ===
-rwxr-xr-xtest/it_dbi.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t
index 5737404..2baf9e3 100755
--- a/test/it_dbi.t
+++ b/test/it_dbi.t
@@ -323,8 +323,8 @@ is(
# REPLACE (without and with quoting)
$r = new it_dbi_test;
$r->replace(['ID' => 5, '-key1' => "2*2"]); is($r->key1, 4);
-$r->replace(['ID' => 5, 'key1' => 42]); is(json_encode($r->key1), json_encode(42), "Preserve type int on dyncols insert");
-$r->update(['key1' => 43]); is(json_encode($r->key1), json_encode(43), "Preserve type int on dyncols update");
+$r->replace(['ID' => 5, 'key1' => 42]); is($r->key1, 42, "Preserve type int on dyncols insert");
+$r->update(['key1' => 43]); is($r->key1, 43, "Preserve type int on dyncols update");
$r->replace(['ID' => 5, 'key1' => "val0'"]); is($r->key1, "val0'");
# UPDATE with WHERE (without and with quoting)