mirror of https://github.com/tc39/test262.git
Fix incorrect tests landed in PR3890
https://github.com/tc39/test262/pull/3890
This commit is contained in:
parent
d865ffeb2d
commit
b37b6f3552
|
@ -35,7 +35,7 @@ const durationMicro = {
|
|||
microseconds: 222
|
||||
};
|
||||
|
||||
const durationMill = {
|
||||
const durationMilli = {
|
||||
hours: 1,
|
||||
minutes: 22,
|
||||
seconds: 33,
|
||||
|
@ -48,6 +48,14 @@ const durationNoSubsecond = {
|
|||
seconds: 33
|
||||
};
|
||||
|
||||
const durationFiveFractional = {
|
||||
hours: 2,
|
||||
minutes: 30,
|
||||
seconds: 10,
|
||||
milliseconds: 111,
|
||||
microseconds: 220,
|
||||
};
|
||||
|
||||
const durationSevenFractional = {
|
||||
hours: 2,
|
||||
minutes: 30,
|
||||
|
@ -65,5 +73,5 @@ assert.sameValue(df.format(durationMicro), "1:22:33.111222", `format output with
|
|||
assert.sameValue(df.format(durationMilli), "1:22:33.111", `format output with millisecond digits and fractionalDigits: undefined using ${style} style option`);
|
||||
assert.sameValue(df.format(durationNoSubsecond), "1:22:33", `format output with no subsecond digits and fractionalDigits: undefined using ${style} style option`);
|
||||
|
||||
assert.sameValue(df.format(durationFiveFractional), "2:30:11122", `format output with five subsecond digits and fractionalDigits: undefined using ${style} style option`);
|
||||
assert.sameValue(df.format(durationSevenFractional), "2:30:1112203", `format output with seven subsecond digits and fractionalDigits: undefined using ${style} style option`);
|
||||
assert.sameValue(df.format(durationFiveFractional), "2:30:10.11122", `format output with five subsecond digits and fractionalDigits: undefined using ${style} style option`);
|
||||
assert.sameValue(df.format(durationSevenFractional), "2:30:10.1112203", `format output with seven subsecond digits and fractionalDigits: undefined using ${style} style option`);
|
||||
|
|
Loading…
Reference in New Issue