summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Gass2023-02-28 11:09:08 +0100
committerNathan Gass2023-02-28 11:09:08 +0100
commitcb367fb0cd8cc7f0401b7fb326f104d7a31aead3 (patch)
treefa58ca165a6eaaaef96e5cbe01c64bd6c1c12865 /test
parentefeb9c4a97668672f8aaa263e4937461f0b1b725 (diff)
downloaditools-cb367fb0cd8cc7f0401b7fb326f104d7a31aead3.tar.gz
itools-cb367fb0cd8cc7f0401b7fb326f104d7a31aead3.tar.bz2
itools-cb367fb0cd8cc7f0401b7fb326f104d7a31aead3.zip
add tests that old values still work as expected
Diffstat (limited to 'test')
-rwxr-xr-xtest/it_dbi.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t
index 73d1e1f..0305166 100755
--- a/test/it_dbi.t
+++ b/test/it_dbi.t
@@ -174,6 +174,12 @@ is(
"update"
);
+$record->update(['flag' => 1]);
+is($record->flag, true, "use integer 1 to set flag to true");
+
+$record->update(['flag' => 0]);
+is($record->flag, false, "use integer 0 to set flag to false");
+
is(
$record->update(['x' => 18], ['x' => 17]),
1,