Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Uncomment Date.day-of-year. We now pass S32-temporal/calendar.t; trac…
…k failure reasons
  • Loading branch information
Tadeusz Sośnierz committed Sep 18, 2011
1 parent a48a985 commit b952372
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/core/Temporal.pm
Expand Up @@ -85,9 +85,9 @@ my role Dateish {
($.day - 1) div 7 + 1
}

# method day-of-year() {
# [+] $.day, map { self.days-in-month($.year, $^m) }, 1 ..^ $.month
# }
method day-of-year() {
[+] $.day, map { self.days-in-month($.year, $^m) }, 1 ..^ $.month
}

method check-value($val is copy, $name, $range, :$allow-nonint) {
$val = $allow-nonint ?? +$val !! $val.Int;
Expand Down
8 changes: 4 additions & 4 deletions t/spectest.data
Expand Up @@ -565,11 +565,11 @@ S32-str/uc.t # icu
S32-str/ucfirst.t # icu
# S32-str/unpack.t # err: Default constructor only takes named arguments
S32-str/words.t # icu
# S32-temporal/calendar.t # err: Method 'truncated-to' not found for invocant of class 'Date'
S32-temporal/calendar.t
S32-temporal/Date.t
# S32-temporal/DateTime.t # err: Default constructor only takes named arguments
# S32-temporal/DateTime-Instant-Duration.t # err: Method 'Instant' not found for invocant of class 'DateTime'
# S32-temporal/local.t # err: Method 'now' not found for invocant of class 'DateTime'
# S32-temporal/DateTime.t # err: duplicate named argument in call
# S32-temporal/DateTime-Instant-Duration.t # err: duplicate named argument in call
# S32-temporal/local.t # err: FixedIntegerArray: index out of bounds!
S32-trig/e.t
S32-trig/pi.t
S32-trig/sin.t
Expand Down

0 comments on commit b952372

Please sign in to comment.