import 'package:flutter_test/flutter_test.dart'; //import 'package:touch_demonstrator/ui/home/uiComponents.dart'; import 'package:touch_demonstrator/src/blocs/bluetoothBloc.dart'; //import 'package:touch_demonstrator/model/touchData.dart'; void main(){ /* test('get coordinates', (){ TouchData t = TouchData(5, 1, 50, 200); expect(BluetoothBloc().checkButtonPressed(t), 1); }); */ test('String -> touch points', (){ String testString = '(5|1|0050|0200)'; expect(BluetoothBloc().parseData(testString), 1); }); }