OLD | NEW |
---|---|
1 import 'dart:async'; | 1 import 'dart:async'; |
2 import 'package:unittest/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 | 3 |
4 main(message, replyTo) { | 4 main(message, replyTo) { |
5 var command = message.first; | 5 var command = message.first; |
6 expect(command, 'START'); | 6 expect(command, 'START'); |
7 new Timer(const Duration(milliseconds: 10), () { | 7 new Timer(const Duration(milliseconds: 10), () { |
8 replyTo.send('DONE'); | 8 replyTo.send('DONE'); |
9 }); | 9 }); |
10 } | 10 } |
11 | |
OLD | NEW |