Skip to content

Commit

Permalink
Demonstrate empty-list bug in assert code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovdm committed Oct 15, 2018
1 parent fb72be0 commit c6a8b96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/dart/locale_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ void main() {
expect(const Locale.create(script: 'Latn').scriptCode, 'Latn');
expect(const Locale.create(region: 'US').toString(), 'und_US');
expect(const Locale.create(region: 'US').countryCode, 'US');
expect(const Locale.create(variants: []).variants,
orderedEquals([]));
expect(const Locale.create(variants: ['fonipa', 'scouse']).variants,
orderedEquals(['fonipa', 'scouse']));

Expand Down

0 comments on commit c6a8b96

Please sign in to comment.