Skip to content
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

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

Chever-John
Copy link
Contributor

Now we have

  1. finished some test files preliminarily.

And the tasks as followed:

  1. perfect all kinds of test files as soon as possible.

Copy link
Contributor

@Harry-Chen Harry-Chen left a 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.

.gitignore Outdated Show resolved Hide resolved
import 'package:flutter_test/flutter_test.dart';

void main() {
group('description', () {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

});
});
}

Copy link
Contributor

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?

Copy link
Contributor Author

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.

assert(Uint8List.fromList([]).toHexString() == "");
});
});
}
Copy link
Contributor

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.

Copy link
Contributor

@Harry-Chen Harry-Chen left a 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.

import 'package:flutter_test/flutter_test.dart';

void main() {
group('description', () {
Copy link
Contributor

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.

@Chever-John
Copy link
Contributor Author

Chever-John commented Sep 26, 2021 via email

1. exclude exception_test.dart;
2. fix all comments.
@Chever-John Chever-John force-pushed the dev-perfect_test_files branch from 8140565 to 2b3d5d0 Compare September 26, 2021 16:34
change path to 'test' directory and run command with the 'flutter format .'.
Its content has been split into separate files.
Signed-off-by: Harry Chen <i@harrychen.xyz>
Signed-off-by: Harry Chen <i@harrychen.xyz>
Copy link
Contributor

@Harry-Chen Harry-Chen left a 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.

test/test_examples_of_records/handover_test.dart Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants