mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
fix #109
This commit is contained in:
parent
613a4ef404
commit
0618ef873d
2 changed files with 13 additions and 10 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,15 +1,13 @@
|
|||
// This is an example unit test.
|
||||
//
|
||||
// A unit test tests a single function, method, or class. To learn more about
|
||||
// writing unit tests, visit
|
||||
// https://flutter.dev/to/unit-testing
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:twonly/src/components/animate_icon.dart';
|
||||
|
||||
void main() {
|
||||
group('Plus Operator', () {
|
||||
test('should add two numbers together', () {
|
||||
expect(1 + 1, 2);
|
||||
group('isEmoji', () {
|
||||
test('test isEmoji function', () {
|
||||
expect(isEmoji("Hallo"), false);
|
||||
expect(isEmoji("😂"), true);
|
||||
expect(isEmoji("😂😂"), false);
|
||||
expect(isEmoji("Hallo 😂"), false);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue