9b02ce3310
Bug: v8:8866 Change-Id: I3a25c68fe4d8536596118352804daa3c6025da37 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1643466 Reviewed-by: Mathias Bynens <mathias@chromium.org> Reviewed-by: Frank Tang <ftang@chromium.org> Commit-Queue: Frank Tang <ftang@chromium.org> Cr-Commit-Position: refs/heads/master@{#62042}
12 lines
434 B
JavaScript
12 lines
434 B
JavaScript
// Copyright 2019 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Regression test to ensure Intl.PluralRules respect minimumFractionDigits
|
|
|
|
assertEquals('other',
|
|
new Intl.PluralRules("en", {minimumFractionDigits: 2}).select(1));
|
|
|
|
assertEquals('zero',
|
|
new Intl.PluralRules("lv", {minimumFractionDigits: 2}).select(1.13));
|