mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
Added more tests to asymmetric_unicode.t to make sure the inserted string's length is 1 besides null
This commit is contained in:
parent
ef56832c32
commit
be2e535f53
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,7 @@ BEGIN {
|
|||
}
|
||||
|
||||
use t::lib::Test;
|
||||
# use Test::More tests => 15;
|
||||
# use Test::More tests => 18;
|
||||
use Test::More skip_all => 'Temporarily disabling known-bad test';
|
||||
use Test::NoWarnings;
|
||||
|
||||
|
@ -24,5 +24,7 @@ foreach ( "\0", "A", "\xe9", "\x{20ac}" ) {
|
|||
ok( $dbh->do("INSERT INTO foo VALUES ( ? )", {}, $_), 'INSERT' );
|
||||
my $foo = $dbh->selectall_arrayref("SELECT bar FROM foo");
|
||||
is_deeply( $foo, [ [ $_ ] ], 'Value round-tripped ok' );
|
||||
my $len = $dbh->selectall_arrayref("SELECT length(bar) FROM foo");
|
||||
is $len->[0][0], 1 unless $_ eq "\0";
|
||||
ok( $dbh->do("DELETE FROM foo"), 'DELETE ok' );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue