This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
morse-converter-web/test/CodeRecognization_test.dart
Marcel Kapfer (mmk2410) 20220a30fa Tests for Dart code
2016-05-30 23:18:43 +02:00

19 lines
459 B
Dart

import "package:test/test.dart";
import '../app/scripts/CodeRecognization.dart';
void main() {
group("writtenMorse", () {
test("CodeRecognization.isMorse() check if text is morse code", () {
expect(CodeRecognization.isMorseCode(".-.. --- .-. . --"), isTrue);
});
test("CodeRecognization.isMorse() check if text is not morse code", () {
expect(CodeRecognization.isMorseCode("message1238170"), isFalse);
});
});
}