From c4c23f6b0ea5c68e266ad0791a2a22fd3456e643 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 1 Jul 2020 16:38:18 +0200 Subject: Simplify test, was under the wrong assumption that is() uses == instead of === --- test/it_dbi.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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) -- cgit v1.2.3