1
1
import 'package:flutter/services.dart' ;
2
2
import 'package:flutter_test/flutter_test.dart' ;
3
- import 'package:stringcare/src/native/stringcare_impl.dart' as native;
4
- import 'package:stringcare/src/web/stringcare_impl.dart' as web;
5
3
import 'package:stringcare/stringcare.dart' ;
6
4
7
5
void main () {
@@ -28,30 +26,6 @@ void main() {
28
26
});
29
27
30
28
test ('getPlatformVersion' , () async {
31
- var nativeImpl = native .StringcareImpl ();
32
- var webImpl = web.StringcareImpl ();
33
- print ("nativeImpl sign: " + nativeImpl.testSign ([]));
34
- print ("webImpl sign: " + webImpl.testSign ([]));
35
29
expect (await Stringcare ().platformVersion, '42' );
36
30
});
37
-
38
- test ('init hash match' , () async {
39
- var nativeImpl = native .StringcareImpl ();
40
- var webImpl = web.StringcareImpl ();
41
- var nHash = nativeImpl.testHash ([]);
42
- var wHash = webImpl.testHash ([]);
43
- print ("native hash: $nHash " );
44
- print ("web hash: $wHash " );
45
- expect (nHash, wHash);
46
- });
47
-
48
- test ('sign match' , () async {
49
- var nativeImpl = native .StringcareImpl ();
50
- var webImpl = web.StringcareImpl ();
51
- var nSign = nativeImpl.testSign ([]);
52
- var wSign = webImpl.testSign ([]);
53
- print ("native sign: $nSign " );
54
- print ("web sign: $wSign " );
55
- expect (nSign, wSign);
56
- });
57
31
}
0 commit comments