@@ -28,19 +28,13 @@ void testRfc7231Time() {
2828 expect (parseRfc7231Time (timeStringUtc).isUtc, isTrue);
2929 });
3030
31- test (
32- 'works for non en-US locale' , () async {
33- initializeDateFormatting ('pt_BR' );
34- Intl .withLocale (
35- 'pt_BR' ,
36- ()
37- {
38- expect (parseRfc7231Time (timeStringUtc), equals (timeUtc));
39- expect (parseRfc7231Time (timeStringUtc).isUtc, isTrue);
40- }
41- );
42- }
43- );
31+ test ('works for non en-US locale' , () async {
32+ initializeDateFormatting ('pt_BR' );
33+ Intl .withLocale ('pt_BR' , () {
34+ expect (parseRfc7231Time (timeStringUtc), equals (timeUtc));
35+ expect (parseRfc7231Time (timeStringUtc).isUtc, isTrue);
36+ });
37+ });
4438 });
4539
4640 group ('toRfc7231Time' , () {
@@ -52,18 +46,12 @@ void testRfc7231Time() {
5246 expect (toRfc7231Time (timeUtc), equals (timeStringUtc));
5347 });
5448
55- test (
56- 'works for non en-US locale' , () async {
57- initializeDateFormatting ('pt_BR' );
58- Intl .withLocale (
59- 'pt_BR' ,
60- ()
61- {
62- expect (toRfc7231Time (timeUtc), equals (timeStringUtc));
63- }
64- );
65- }
66- );
49+ test ('works for non en-US locale' , () async {
50+ initializeDateFormatting ('pt_BR' );
51+ Intl .withLocale ('pt_BR' , () {
52+ expect (toRfc7231Time (timeUtc), equals (timeStringUtc));
53+ });
54+ });
6755 });
6856}
6957
0 commit comments