File tree 1 file changed +9
-2
lines changed
test/staging/Intl402/Temporal/old
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 4
4
/*---
5
5
esid: sec-temporal-intl
6
6
description: Japanese eras
7
+ includes: [temporalHelpers.js]
7
8
features: [Temporal]
8
9
---*/
9
10
@@ -67,7 +68,10 @@ date = Temporal.PlainDate.from({
67
68
calendar : "japanese"
68
69
} ) ;
69
70
assert . sameValue ( `${ date } ` , "1000-01-01[u-ca=japanese]" ) ;
70
- assert . sameValue ( date . era , "ce" ) ;
71
+ assert . sameValue (
72
+ TemporalHelpers . canonicalizeEraInCalendar ( date , date . era ) ,
73
+ TemporalHelpers . canonicalizeEraInCalendar ( date , "ce" ) ,
74
+ ) ;
71
75
assert . sameValue ( date . eraYear , 1000 ) ;
72
76
73
77
date = Temporal . PlainDate . from ( {
@@ -78,5 +82,8 @@ date = Temporal.PlainDate.from({
78
82
calendar : "japanese"
79
83
} ) ;
80
84
assert . sameValue ( `${ date } ` , "0000-01-01[u-ca=japanese]" ) ;
81
- assert . sameValue ( date . era , "bce" ) ;
85
+ assert . sameValue (
86
+ TemporalHelpers . canonicalizeEraInCalendar ( date , date . era ) ,
87
+ TemporalHelpers . canonicalizeEraInCalendar ( date , "bce" ) ,
88
+ ) ;
82
89
assert . sameValue ( date . eraYear , 1 ) ;
You can’t perform that action at this time.
0 commit comments