Skip to content

Commit 66f16cc

Browse files
committed
Test returning of date objects
1 parent 8943dff commit 66f16cc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

t/date.t

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env perl6
2+
3+
use v6;
4+
use Inline::Python;
5+
6+
use Test;
7+
8+
plan 1;
9+
10+
my $py = Inline::Python.new;
11+
$py.run: 'import datetime';
12+
my $py_date = $py.call('datetime', 'date', 2017, 3, 1);
13+
14+
is $py_date.isoformat.decode, '2017-03-01';

0 commit comments

Comments
 (0)