-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete the test files preliminarily. #13
base: master
Are you sure you want to change the base?
Conversation
Wrap exception
fix: exceptions exiting have been modified.
Update LICENSE text
1. add test files to almost every files. 2. improve the code according to advices from @Harry-Chen in nfcim#11.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! But there are still some minor changes needed. Please fix them according to my comments.
test/exceptions_test.dart
Outdated
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
void main() { | ||
group('description', () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this blank file for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means waiting to be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then this file shouldn't be included in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
}); | ||
}); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there so many blank lines below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now removed Spaces for convenience when I was coding.
test/utilities_test.dart
Outdated
assert(Uint8List.fromList([]).toHexString() == ""); | ||
}); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a new line here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run flutter format
on your code.
test/exceptions_test.dart
Outdated
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
void main() { | ||
group('description', () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then this file shouldn't be included in this PR.
1. exclude exception_test.dart; 2. fix all comments.
8140565
to
2b3d5d0
Compare
change path to 'test' directory and run command with the 'flutter format .'.
446713e
to
1474e99
Compare
Its content has been split into separate files.
Signed-off-by: Harry Chen <i@harrychen.xyz>
Signed-off-by: Harry Chen <i@harrychen.xyz>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed some problems in your code. Please pull my changes.
There is a failing test:
Running "flutter pub get" in ndef... 9.9s
00:23 +4 -1: ndef\test\records\handover_test.dart: encode and decode handover record [E]
'file:///ndef/test/common.dart': Failed assertion: line 21 pos 12: 'encodeNdefMessage(messages[i]).toHexString() == hexStrings[i]': is not true.
dart:core _AssertionError._throwNew
test\common.dart 21:12 testGenerate
test\records\handover_test.dart 88:7 main.<fn>.<fn>
00:24 +22 -1: Some tests failed.
Please fix it and I will merge.
Now we have
And the tasks as followed: