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.
42 lines
1.2 KiB
42 lines
1.2 KiB
import 'dart:convert';
|
|
|
|
void main() {
|
|
/* const MethodChannel channel = MethodChannel('flutter_openim_sdk');
|
|
|
|
TestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
setUp(() {
|
|
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
|
return '42';
|
|
});
|
|
});
|
|
|
|
tearDown(() {
|
|
channel.setMockMethodCallHandler(null);
|
|
});
|
|
|
|
test('getPlatformVersion', () async {});*/
|
|
|
|
// Message m1 = new Message(clientMsgID: '1', content: 'c1');
|
|
// Message m2 = new Message(clientMsgID: '2', content: 'c2');
|
|
// Message m3 = new Message(clientMsgID: '3', content: 'c3');
|
|
// Message m4 = new Message(clientMsgID: '3', content: 'c4');
|
|
// List list = List.of([m1, m2, m3]);
|
|
//
|
|
// print(list.contains(m4));
|
|
// print(m1 == m4);
|
|
// print(m2 == m4);
|
|
// print(m3 == m4);
|
|
// var input = "1234 @abc @bbc @hha 开什么玩笑";
|
|
// RegExp exp = new RegExp(r"(@\w+) ");
|
|
// final ms = exp.allMatches(input);
|
|
// for (Match m in ms) {
|
|
// String match = m.group(0)??'';
|
|
// print('====$match ${m.start} ${m.end}');
|
|
// }
|
|
|
|
DateTime now = DateTime.now();
|
|
print('${now.millisecond}');
|
|
print('${now.microsecondsSinceEpoch}');
|
|
print('${now.millisecondsSinceEpoch}');
|
|
}
|
|
|