From 86f082c7c454bc55f41af5746b474df5b0caaada Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Mon, 17 Jan 2022 22:00:47 +0100 Subject: [PATCH] Fix test failure with newer (DBD::)SQLite --- t/URT/t/04a_sqlite.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/URT/t/04a_sqlite.t b/t/URT/t/04a_sqlite.t index 806e1104..0a729290 100644 --- a/t/URT/t/04a_sqlite.t +++ b/t/URT/t/04a_sqlite.t @@ -2,6 +2,7 @@ use strict; use warnings; use Test::More tests => 80; +use Test::Deep; use File::Basename; use lib File::Basename::dirname(__FILE__)."/../../../lib"; @@ -37,7 +38,7 @@ sub test_column_details { my @expected = ( { TABLE_NAME => 'inline', COLUMN_NAME => 'id', - DATA_TYPE => 'integer', + DATA_TYPE => re(qr/^integer$/i), COLUMN_SIZE => undef, NULLABLE => 1, COLUMN_DEF => undef, @@ -50,7 +51,7 @@ sub test_column_details { COLUMN_DEF => 'some name', }, ); - is_deeply(\@results, + cmp_deeply(\@results, \@expected, 'column details for table inline are correct'); }