@@ -698,8 +698,8 @@ module.exports.teststrings = {
698698
699699 var platform = ilib . _getPlatform ( ) ;
700700 if ( platform === "nodejs" ) {
701- var cldrVersion = process . versions [ "cldr" ] ;
702- if ( Number ( cldrVersion ) < 36 ) {
701+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
702+ if ( cldrVersion < 36 ) {
703703 test . equal ( str . formatChoice ( [ params . num , params . pages ] , params ) , "0 items on 0 pages." ) ;
704704 } else {
705705 test . equal ( str . formatChoice ( [ params . num , params . pages ] , params ) , "0 items (many) on 0 pages (many)." ) ;
@@ -3023,8 +3023,8 @@ module.exports.teststrings = {
30233023
30243024 var platform = ilib . _getPlatform ( ) ;
30253025 if ( platform === "nodejs" ) {
3026- var cldrVersion = process . versions [ "cldr" ] ;
3027- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
3026+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3027+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
30283028 test . equal ( str . formatChoice ( 0 ) , "There are no items." ) ;
30293029 } else {
30303030 test . equal ( str . formatChoice ( 0 ) , "Default items" ) ;
@@ -3249,8 +3249,8 @@ module.exports.teststrings = {
32493249
32503250 var platform = ilib . _getPlatform ( ) ;
32513251 if ( platform === "nodejs" ) {
3252- var cldrVersion = process . versions [ "cldr" ] ;
3253- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
3252+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3253+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
32543254 test . equal ( str . formatChoice ( 0 ) , "There are no items." ) ;
32553255 } else {
32563256 test . equal ( str . formatChoice ( 0 ) , "The item is one" ) ;
@@ -3280,10 +3280,10 @@ module.exports.teststrings = {
32803280 test . ok ( str !== null ) ;
32813281
32823282 if ( ilib . _getPlatform ( ) === "nodejs" ) {
3283- var cldrVersion = process . versions [ "cldr" ] ;
3284- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
3283+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3284+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
32853285 test . equal ( str . formatChoice ( 1000000 ) , "The items are many" ) ;
3286- } else if ( Number ( cldrVersion ) >= 36 && Number ( cldrVersion ) < 40 ) {
3286+ } else if ( cldrVersion >= 36 && cldrVersion < 40 ) {
32873287 test . equal ( str . formatChoice ( 1000000 ) , "Default items" ) ; // wrong result based on cldr41
32883288 } else {
32893289 test . equal ( str . formatChoice ( 1000000 ) , "The items are many" ) ;
@@ -3306,8 +3306,8 @@ module.exports.teststrings = {
33063306
33073307 var platform = ilib . _getPlatform ( ) ;
33083308 if ( platform === "nodejs" ) {
3309- var cldrVersion = process . versions [ "cldr" ] ;
3310- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
3309+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3310+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
33113311 test . equal ( str . formatChoice ( 0 ) , "There are no items." ) ;
33123312 } else {
33133313 test . equal ( str . formatChoice ( 0 ) , "Default items" ) ;
@@ -3337,8 +3337,8 @@ module.exports.teststrings = {
33373337 test . ok ( str !== null ) ;
33383338 var platform = ilib . _getPlatform ( ) ;
33393339 if ( platform === "nodejs" ) {
3340- var cldrVersion = process . versions [ "cldr" ] ;
3341- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
3340+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3341+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
33423342 test . equal ( str . formatChoice ( 0 ) , "There are no items." ) ;
33433343 } else {
33443344 test . equal ( str . formatChoice ( 0 ) , "The items are many" ) ;
@@ -3866,7 +3866,7 @@ module.exports.teststrings = {
38663866
38673867 var platform = ilib . _getPlatform ( ) ;
38683868 if ( platform === "nodejs" ) {
3869- var cldrVersion = process . versions [ "cldr" ] ;
3869+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
38703870 if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
38713871 test . equal ( str . formatChoice ( 0 ) , "There are no items." ) ;
38723872 } else {
@@ -3940,7 +3940,7 @@ module.exports.teststrings = {
39403940 test . ok ( str !== null ) ;
39413941
39423942 if ( ilib . _getPlatform ( ) === "nodejs" ) {
3943- var cldrVersion = process . versions [ "cldr" ] ;
3943+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
39443944 if ( Number ( cldrVersion ) < 36 ) { // // Intl.PluralRules doesn't support this locale until this version.
39453945 test . equal ( str . formatChoice ( 3e6 ) , "The items are many" ) ;
39463946 } else if ( Number ( cldrVersion ) >= 36 && Number ( cldrVersion ) < 40 ) {
@@ -3964,11 +3964,11 @@ module.exports.teststrings = {
39643964 test . ok ( str !== null ) ;
39653965
39663966 if ( ilib . _getPlatform ( ) === "nodejs" ) {
3967- var cldrVersion = process . versions [ "cldr" ] ;
3968- if ( Number ( cldrVersion ) < 36 ) { // // Intl.PluralRules doesn't support this locale until this version.
3967+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3968+ if ( cldrVersion < 36 ) { // // Intl.PluralRules doesn't support this locale until this version.
39693969 test . equal ( str . formatChoice ( 3e6 ) , "The items are many" ) ;
39703970 }
3971- else if ( Number ( cldrVersion ) >= 36 && Number ( cldrVersion ) < 40 ) {
3971+ else if ( cldrVersion >= 36 && cldrVersion < 40 ) {
39723972 test . equal ( str . formatChoice ( 3e6 ) , "Default items" ) ; // wrong result based on cldr41
39733973 } else {
39743974 test . equal ( str . formatChoice ( 3e6 ) , "The items are many" ) ;
@@ -3989,10 +3989,10 @@ module.exports.teststrings = {
39893989 test . ok ( str !== null ) ;
39903990
39913991 if ( ilib . _getPlatform ( ) === "nodejs" ) {
3992- var cldrVersion = process . versions [ "cldr" ] ;
3993- if ( Number ( cldrVersion ) < 36 ) { // // Intl.PluralRules doesn't support this locale until this version.
3992+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
3993+ if ( cldrVersion < 36 ) { // // Intl.PluralRules doesn't support this locale until this version.
39943994 test . equal ( str . formatChoice ( 1000000 ) , "The items are many" ) ;
3995- } else if ( Number ( cldrVersion ) >= 36 && Number ( cldrVersion ) < 40 ) {
3995+ } else if ( cldrVersion >= 36 && cldrVersion < 40 ) {
39963996 test . equal ( str . formatChoice ( 1000000 ) , "Default items" ) ; // wrong result based on cldr41
39973997 } else {
39983998 test . equal ( str . formatChoice ( 1000000 ) , "The items are many" ) ;
@@ -4022,10 +4022,10 @@ module.exports.teststrings = {
40224022 test . ok ( str !== null ) ;
40234023
40244024 if ( ilib . _getPlatform ( ) === "nodejs" ) {
4025- var cldrVersion = process . versions [ "cldr" ] ;
4026- if ( Number ( cldrVersion ) < 36 ) {
4025+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
4026+ if ( cldrVersion < 36 ) {
40274027 test . equal ( str . formatChoice ( 5e6 ) , "The items are many" ) ;
4028- } else if ( Number ( cldrVersion ) >= 36 && Number ( cldrVersion ) < 38 ) {
4028+ } else if ( cldrVersion >= 36 && cldrVersion < 38 ) {
40294029 test . equal ( str . formatChoice ( 5e6 ) , "Default items" ) ; // wrong result based on cldr41
40304030 } else {
40314031 test . equal ( str . formatChoice ( 5e6 ) , "The items are many" ) ;
@@ -4122,8 +4122,8 @@ module.exports.teststrings = {
41224122
41234123 var platform = ilib . _getPlatform ( ) ;
41244124 if ( platform === "nodejs" ) {
4125- var cldrVersion = process . versions [ "cldr" ] ;
4126- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
4125+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
4126+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
41274127 test . equal ( str . formatChoice ( 5.2 ) , "The items are few" ) ;
41284128 } else {
41294129 test . equal ( str . formatChoice ( 5.2 ) , "Default items" ) ; // wrong result based on cldr41
@@ -4240,8 +4240,8 @@ module.exports.teststrings = {
42404240
42414241 var platform = ilib . _getPlatform ( ) ;
42424242 if ( platform === "nodejs" ) {
4243- var cldrVersion = process . versions [ "cldr" ] ;
4244- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
4243+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
4244+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
42454245 test . equal ( str . formatChoice ( 0.0 ) , "There are no items." ) ;
42464246 } else {
42474247 test . equal ( str . formatChoice ( 0.0 ) , "Default items" ) ;
@@ -4291,8 +4291,8 @@ module.exports.teststrings = {
42914291 test . ok ( str !== null ) ;
42924292 var platform = ilib . _getPlatform ( ) ;
42934293 if ( platform === "nodejs" ) {
4294- var cldrVersion = process . versions [ "cldr" ] ;
4295- if ( Number ( cldrVersion ) < 36 ) {
4294+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
4295+ if ( cldrVersion < 36 ) {
42964296 test . equal ( str . formatChoice ( 1.5 ) , "Default items" ) ;
42974297 } else {
42984298 test . equal ( str . formatChoice ( 1.5 ) , "The item is one" ) ;
@@ -4600,8 +4600,8 @@ module.exports.teststrings = {
46004600 test . ok ( str !== null ) ;
46014601 var platform = ilib . _getPlatform ( ) ;
46024602 if ( platform === "nodejs" ) {
4603- var cldrVersion = process . versions [ "cldr" ] ;
4604- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
4603+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
4604+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
46054605 test . equal ( str . formatChoice ( 3.1e6 ) , "The items are many" ) ;
46064606 } else {
46074607 test . equal ( str . formatChoice ( 3.1e6 ) , "Default items" ) ; // wrong result based on cldr41
@@ -4631,8 +4631,8 @@ module.exports.teststrings = {
46314631 test . ok ( str !== null ) ;
46324632 var platform = ilib . _getPlatform ( ) ;
46334633 if ( platform === "nodejs" ) {
4634- var cldrVersion = process . versions [ "cldr" ] ;
4635- if ( Number ( cldrVersion ) < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
4634+ var cldrVersion = Number ( process . versions [ "cldr" ] ) ;
4635+ if ( cldrVersion < 36 ) { // Intl.PluralRules doesn't support this locale until this version.
46364636 test . equal ( str . formatChoice ( 2.1e6 ) , "The items are many" ) ;
46374637 } else {
46384638 test . equal ( str . formatChoice ( 2.1e6 ) , "Default items" ) ; // wrong result based on cldr41
0 commit comments