diff options
author | Nathan Gass | 2023-02-28 11:09:08 +0100 |
---|---|---|
committer | Nathan Gass | 2023-02-28 11:09:08 +0100 |
commit | cb367fb0cd8cc7f0401b7fb326f104d7a31aead3 (patch) | |
tree | fa58ca165a6eaaaef96e5cbe01c64bd6c1c12865 /test | |
parent | efeb9c4a97668672f8aaa263e4937461f0b1b725 (diff) | |
download | itools-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-x | test/it_dbi.t | 6 |
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, |