Skip to content

Commit

Permalink
add helpful comment about created dir structure in test
Browse files Browse the repository at this point in the history
  • Loading branch information
komape committed Jul 28, 2020
1 parent 059a7b4 commit 6b27749
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/directory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ void main() {
parentDir.delete(recursive: true);
});

// the created directory strcuture:
//
// parentParentDir
// -> parentDir
// -> thisDir
// -> foo.txt

expect(await parentDir.contains(thisDir), true);
expect(await parentDir.contains(thisDir, recursive: true), true);
expect(await thisDir.contains(parentDir), false);
Expand All @@ -42,6 +49,13 @@ void main() {
parentDir.delete(recursive: true);
});

// the created directory strcuture:
//
// parentParentDir
// -> parentDir
// -> thisDir
// -> foo.txt

expect(parentDir.containsSync(thisDir), true);
expect(parentDir.containsSync(thisDir, recursive: true), true);
expect(thisDir.containsSync(parentDir), false);
Expand Down

0 comments on commit 6b27749

Please sign in to comment.