RED: Test exposing empty string bug
- Test expects empty string to return 0 - Currently returns 1 instead - Expected: <0>, Actual: <1>
This commit is contained in:
parent
279c381872
commit
e38bac9441
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ void main() {
|
||||||
calculator = StringCalculator();
|
calculator = StringCalculator();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Tests will be added as we hunt bugs
|
test('empty string returns 0', () {
|
||||||
|
expect(calculator.add(''), equals(0));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue