RED: Test exposing custom delimiter bug
- Test expects '//;\n1;2' to return 3 - Currently fails with FormatException - Custom delimiter extraction is commented out - Tries to parse '1;2' as single number, fails
This commit is contained in:
parent
073afc0ab6
commit
6deaaaa8dc
1 changed files with 5 additions and 0 deletions
|
|
@ -27,5 +27,10 @@ void main() {
|
||||||
expect(calculator.add('1,2,3'), equals(6));
|
expect(calculator.add('1,2,3'), equals(6));
|
||||||
expect(calculator.add('5,10,15,20'), equals(50));
|
expect(calculator.add('5,10,15,20'), equals(50));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('custom delimiter works correctly', () {
|
||||||
|
expect(calculator.add('//;\n1;2'), equals(3));
|
||||||
|
expect(calculator.add('//|\n10|20|30'), equals(60));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue