mirror of https://github.com/tc39/test262.git
Add test for Temporal.Duration.prototype.total
This commit is contained in:
parent
b37d74191a
commit
f932f079b3
|
@ -0,0 +1,12 @@
|
||||||
|
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-temporal.duration.prototype.total
|
||||||
|
description: Returns ±∞ when total is not representable as a Number value.
|
||||||
|
features: [Temporal]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
const instance = new Temporal.Duration(0, 0, 0, 0, 0, 0, 0, 0, Number.MAX_VALUE, 0);
|
||||||
|
|
||||||
|
assert.sameValue(instance.total('nanoseconds'), Infinity);
|
Loading…
Reference in New Issue