Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unit_test.dart 536B

123456789101112131415161718
  1. import 'package:flutter_test/flutter_test.dart';
  2. //import 'package:touch_demonstrator/ui/home/uiComponents.dart';
  3. import 'package:touch_demonstrator/src/blocs/bluetoothBloc.dart';
  4. //import 'package:touch_demonstrator/model/touchData.dart';
  5. void main(){
  6. /*
  7. test('get coordinates', (){
  8. TouchData t = TouchData(5, 1, 50, 200);
  9. expect(BluetoothBloc().checkButtonPressed(t), 1);
  10. });
  11. */
  12. test('String -> touch points', (){
  13. String testString = '(5|1|0050|0200)';
  14. expect(BluetoothBloc().parseData(testString), 1);
  15. });
  16. }