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

20 lines
459 B
Dart
Raw Normal View History

2016-05-30 23:18:43 +02:00
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);
});
});
}