"helloWorlds": "{count,plural, =0{Hello}=1{Hello World}=2{Hello two worlds}few{Hello {count} worlds}many{Hello all {count} worlds}other{Hello other {count} worlds}}",
...
...
@@ -1635,7 +1640,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e
fail('Generating class methods without placeholders should not succeed');
});
test('should throw attempting to generate a plural message with an empty placeholders map',(){
testUsingContext('should throw attempting to generate a plural message with an empty placeholders map',(){
"helloWorlds": "{count,plural, =0{Hello}=1{Hello World}=2{Hello two worlds}few{Hello {count} worlds}many{Hello all {count} worlds}other{Hello other {count} worlds}}",
...
...
@@ -1668,7 +1673,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e
fail('Generating class methods without placeholders should not succeed');
});
test('should throw attempting to generate a plural message with no resource attributes',(){
testUsingContext('should throw attempting to generate a plural message with no resource attributes',(){
"helloWorlds": "{count,plural, =0{Hello}=1{Hello World}=2{Hello two worlds}few{Hello {count} worlds}many{Hello all {count} worlds}other{Hello other {count} worlds}}"
...
...
@@ -1697,7 +1702,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e
fail('Generating plural class method without resource attributes should not succeed');
});
test('should throw attempting to generate a plural message with incorrect format for placeholders',(){
testUsingContext('should throw attempting to generate a plural message with incorrect format for placeholders',(){
"helloWorlds": "{count,plural, =0{Hello}=1{Hello World}=2{Hello two worlds}few{Hello {count} worlds}many{Hello all {count} worlds}other{Hello other {count} worlds}}",
...
...
@@ -1731,7 +1736,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e
});
});
test('intl package import should be omitted in subclass files when no plurals are included',(){
testUsingContext('intl package import should be omitted in subclass files when no plurals are included',(){