Skip to content

Commit dbc2097

Browse files
committed
Testing that Intl.PluralRules.prototype.selectRange respects the value of notation option.
1 parent f4451dd commit dbc2097

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025, 2025, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
5+
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6+
*/
7+
8+
/**
9+
* Checks that Intl.PluralRules.prototype.selectRange respects the value of notation option.
10+
*/
11+
12+
load('../assert.js');
13+
14+
assertSame('one', new Intl.PluralRules('ru', { notation: 'standard' }).selectRange(1, 1000001));
15+
assertSame('many', new Intl.PluralRules('ru', { notation: 'compact' }).selectRange(1, 1000001));

0 commit comments

Comments
 (0)