Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[DateTime.t] also test %b and %B in strftime()

git-svn-id: http://svn.pugscode.org/pugs@30442 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 8a0c487ef6b96b6fa08c8d4571f398c8b0ceaef9 1 parent 94eb871
mberends authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 S32-temporal/DateTime.t
View
4 S32-temporal/DateTime.t
@@ -103,8 +103,8 @@ my $need = "1582/10/04 13:02:03 15 4 01=13 1\t654pm Mon,1582-10-04%.\n";
ok $g1.strftime($format) eq $need, 'first strftime'; # test 20
$g1 = DateTime.new(:year(1), :month(2), :day(3),
:hour(4), :minute(5), :second(6.987654) );
-$format = '%I %6N %A';
-$need = "04 987654 Saturday";
+$format = '%I %6N %A %b=%B';
+$need = "04 987654 Saturday Feb=February";
ok $g1.strftime($format) eq $need, 'second strftime'; # test 21
# An independent calculation to cross check the Temporal algorithms.
Please sign in to comment.
Something went wrong with that request. Please try again.