| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library message_extraction_test; | 5 library message_extraction_test; |
| 6 | 6 |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 verify('This is singular.'); | 165 verify('This is singular.'); |
| 166 verify('This is plural (2).'); | 166 verify('This is plural (2).'); |
| 167 verify('Alice went to her house'); | 167 verify('Alice went to her house'); |
| 168 verify('Bob went to his house'); | 168 verify('Bob went to his house'); |
| 169 verify('cat went to its litter box'); | 169 verify('cat went to its litter box'); |
| 170 verify('Alice, Bob sont allés au magasin'); | 170 verify('Alice, Bob sont allés au magasin'); |
| 171 verify('Alice est allée au magasin'); | 171 verify('Alice est allée au magasin'); |
| 172 verify('Personne n\'est allé au magasin'); | 172 verify('Personne n\'est allé au magasin'); |
| 173 verify('Bob, Bob sont allés au magasin'); | 173 verify('Bob, Bob sont allés au magasin'); |
| 174 verify('Alice, Alice sont allées au magasin'); | 174 verify('Alice, Alice sont allées au magasin'); |
| 175 verify('none'); |
| 176 verify('one'); |
| 177 verify('m'); |
| 178 verify('f'); |
| 179 verify('7 male'); |
| 175 | 180 |
| 176 var fr_lines = lines.skip(1).skipWhile( | 181 var fr_lines = lines.skip(1).skipWhile( |
| 177 (line) => !line.contains('----')).toList(); | 182 (line) => !line.contains('----')).toList(); |
| 178 lineIterator = fr_lines.iterator..moveNext(); | 183 lineIterator = fr_lines.iterator..moveNext(); |
| 179 verify("Printing messages for fr"); | 184 verify("Printing messages for fr"); |
| 180 verify("Il s'agit d'un message"); | 185 verify("Il s'agit d'un message"); |
| 181 verify("Un autre message avec un seul paramètre hello"); | 186 verify("Un autre message avec un seul paramètre hello"); |
| 182 verify( | 187 verify( |
| 183 "Caractères qui doivent être échapper, par exemple barres \\ " | 188 "Caractères qui doivent être échapper, par exemple barres \\ " |
| 184 "dollars \${ (les accolades sont ok), et xml/html réservés <& et " | 189 "dollars \${ (les accolades sont ok), et xml/html réservés <& et " |
| (...skipping 18 matching lines...) Expand all Loading... |
| 203 verify('C\'est singulier'); | 208 verify('C\'est singulier'); |
| 204 verify('C\'est pluriel (2).'); | 209 verify('C\'est pluriel (2).'); |
| 205 verify('Alice est allée à sa house'); | 210 verify('Alice est allée à sa house'); |
| 206 verify('Bob est allé à sa house'); | 211 verify('Bob est allé à sa house'); |
| 207 verify('cat est allé à sa litter box'); | 212 verify('cat est allé à sa litter box'); |
| 208 verify('Alice, Bob étaient allés à la magasin'); | 213 verify('Alice, Bob étaient allés à la magasin'); |
| 209 verify('Alice était allée à la magasin'); | 214 verify('Alice était allée à la magasin'); |
| 210 verify('Personne n\'avait allé à la magasin'); | 215 verify('Personne n\'avait allé à la magasin'); |
| 211 verify('Bob, Bob étaient allés à la magasin'); | 216 verify('Bob, Bob étaient allés à la magasin'); |
| 212 verify('Alice, Alice étaient allées à la magasin'); | 217 verify('Alice, Alice étaient allées à la magasin'); |
| 218 verify('rien'); |
| 219 verify('un'); |
| 220 verify('homme'); |
| 221 verify('femme'); |
| 222 verify('7 homme'); |
| 213 | 223 |
| 214 var de_lines = fr_lines.skip(1).skipWhile( | 224 var de_lines = fr_lines.skip(1).skipWhile( |
| 215 (line) => !line.contains('----')).toList(); | 225 (line) => !line.contains('----')).toList(); |
| 216 lineIterator = de_lines.iterator..moveNext(); | 226 lineIterator = de_lines.iterator..moveNext(); |
| 217 verify("Printing messages for de_DE"); | 227 verify("Printing messages for de_DE"); |
| 218 verify("Dies ist eine Nachricht"); | 228 verify("Dies ist eine Nachricht"); |
| 219 verify("Eine weitere Meldung mit dem Parameter hello"); | 229 verify("Eine weitere Meldung mit dem Parameter hello"); |
| 220 verify( | 230 verify( |
| 221 "Zeichen, die Flucht benötigen, zB Schrägstriche \\ Dollar " | 231 "Zeichen, die Flucht benötigen, zB Schrägstriche \\ Dollar " |
| 222 "\${ (geschweiften Klammern sind ok) und xml reservierte Zeichen <& und " | 232 "\${ (geschweiften Klammern sind ok) und xml reservierte Zeichen <& und " |
| (...skipping 18 matching lines...) Expand all Loading... |
| 241 verify('Dies ist einmalig'); | 251 verify('Dies ist einmalig'); |
| 242 verify('Dies ist Plural (2).'); | 252 verify('Dies ist Plural (2).'); |
| 243 verify('Alice ging zu ihrem house'); | 253 verify('Alice ging zu ihrem house'); |
| 244 verify('Bob ging zu seinem house'); | 254 verify('Bob ging zu seinem house'); |
| 245 verify('cat ging zu seinem litter box'); | 255 verify('cat ging zu seinem litter box'); |
| 246 verify('Alice, Bob gingen zum magasin'); | 256 verify('Alice, Bob gingen zum magasin'); |
| 247 verify('Alice ging in dem magasin'); | 257 verify('Alice ging in dem magasin'); |
| 248 verify('Niemand ging zu magasin'); | 258 verify('Niemand ging zu magasin'); |
| 249 verify('Bob, Bob gingen zum magasin'); | 259 verify('Bob, Bob gingen zum magasin'); |
| 250 verify('Alice, Alice gingen zum magasin'); | 260 verify('Alice, Alice gingen zum magasin'); |
| 261 verify('Null'); |
| 262 verify('ein'); |
| 263 verify('Mann'); |
| 264 verify('Frau'); |
| 265 verify('7 Mann'); |
| 251 } | 266 } |
| OLD | NEW |