Showing
1 changed file
with
4 additions
and
1 deletions
@@ -690,14 +690,17 @@ void main() { | @@ -690,14 +690,17 @@ void main() { | ||
690 | }); | 690 | }); |
691 | 691 | ||
692 | test('var.removeAllWhitespace', () { | 692 | test('var.removeAllWhitespace', () { |
693 | + String nullString; | ||
693 | expect('foo bar'.removeAllWhitespace, 'foobar'); | 694 | expect('foo bar'.removeAllWhitespace, 'foobar'); |
694 | expect('foo'.removeAllWhitespace, 'foo'); | 695 | expect('foo'.removeAllWhitespace, 'foo'); |
695 | - expect(''.removeAllWhitespace, null); | 696 | + expect(''.removeAllWhitespace, ''); |
697 | + expect(nullString.removeAllWhitespace, null); | ||
696 | }); | 698 | }); |
697 | 699 | ||
698 | test('var.camelCase', () { | 700 | test('var.camelCase', () { |
699 | expect('foo bar'.camelCase, 'fooBar'); | 701 | expect('foo bar'.camelCase, 'fooBar'); |
700 | expect('the fox jumped in the water'.camelCase, 'theFoxJumpedInTheWater'); | 702 | expect('the fox jumped in the water'.camelCase, 'theFoxJumpedInTheWater'); |
703 | + expect('foo_bar'.camelCase, 'fooBar'); | ||
701 | expect(''.camelCase, null); | 704 | expect(''.camelCase, null); |
702 | }); | 705 | }); |
703 | 706 |
-
Please register or login to post a comment