Skip to content

Commit a511c5e

Browse files
Jack-WorksMs2ger
authored andcommitted
Split IANA timezone test from built-ins to intl402
1 parent 458e815 commit a511c5e

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

test/built-ins/Temporal/Duration/prototype/round/rounding-increment-relativeto.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,3 @@ TemporalHelpers.assertDuration(new Temporal.Duration(0, 1, 0, 30).round({
3939
roundingIncrement: 2,
4040
relativeTo: new Temporal.PlainDate(1970, 7, 31)
4141
}), 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, `1m30d to 2m with relativeTo 1970-07-31`);
42-
TemporalHelpers.assertDuration(new Temporal.Duration(0, 1, 0, 30).round({
43-
smallestUnit: "months",
44-
roundingIncrement: 2,
45-
relativeTo: Temporal.ZonedDateTime.from('2025-03-09T03:00:00-07:00[America/Vancouver]')
46-
}), 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, `1m30d to 2m with relativeTo 2025-03-09T03:00:00-07:00[America/Vancouver]`);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (C) 2026 Igalia, S.L. All rights reserved.
2+
// This code is governed by the BSD license found in the LICENSE file.
3+
4+
/*---
5+
esid: sec-temporal.duration.prototype.round
6+
description: Test a specific buggy case from temporal_rs
7+
includes: [temporalHelpers.js]
8+
features: [Temporal]
9+
---*/
10+
11+
const relativeTo = Temporal.ZonedDateTime.from('2025-03-09T03:00:00-07:00[America/Vancouver]');
12+
TemporalHelpers.assertDuration(new Temporal.Duration(0, 1, 0, 30).round({
13+
smallestUnit: "months",
14+
roundingIncrement: 2,
15+
relativeTo,
16+
}), 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, `1m30d to 2m with relativeTo 2025-03-09T03:00:00-07:00[America/Vancouver]`);

0 commit comments

Comments
 (0)