RED: test rover initialization
This commit is contained in:
parent
b4d5e995cf
commit
0afac966fc
1 changed files with 14 additions and 0 deletions
14
test/mars_rover_test.dart
Normal file
14
test/mars_rover_test.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
import 'package:tdd_katas/mars_rover.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
group('Mars Rover:', () {
|
||||||
|
test('rover reports initial position and direction', () {
|
||||||
|
final rover = Rover(x: 0, y: 0, direction: 'N');
|
||||||
|
|
||||||
|
expect(rover.x, equals(0));
|
||||||
|
expect(rover.y, equals(0));
|
||||||
|
expect(rover.direction, equals('N'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue