We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59e5b0 commit cb34f82Copy full SHA for cb34f82
t/basic.t
@@ -3,6 +3,7 @@
3
use Data::Frame::Setup;
4
5
use Test2::V0;
6
+use Test2::Tools::Warnings qw/warning/;
7
8
use Data::Frame;
9
use PDL::Core qw(pdl);
@@ -33,7 +34,15 @@ is( $df_array->column_names, [ qw/z y x/ ] );
33
34
is( $df_hash->column_names, [ qw/a b c/ ] );
35
36
is( $df_hash->column('c')->length, 4);
-is( $df_hash->column('c')->number_of_rows, 4);
37
+{
38
+ my $length;
39
+ like(
40
+ warning { $length = $df_hash->column('c')->number_of_rows },
41
+ qr/deprecated/,
42
+ 'Got deprecation warning'
43
+ );
44
+ is($length , 4);
45
+}
46
is( $df_hash->column('c')->unpdl, $c);
47
48
like(
0 commit comments