Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ebwood committed Mar 9, 2024
1 parent 91a1404 commit f0b30bc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/txt2rfw/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
A sample command-line application providing basic argument parsing with an entrypoint in `bin/`.
# txt2rfw
16 changes: 16 additions & 0 deletions packages/txt2rfw/melos_txt2rfw.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
8 changes: 4 additions & 4 deletions packages/txt2rfw/test/txt2rfw_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ void main() {
'dart', ['run', 'bin/txt2rfw.dart', "test/test.rfwtxt"]);
await process.stdout.transform(utf8.decoder).forEach(print);
await process.stderr.transform(utf8.decoder).forEach(print);
File resultFile = File('test/match.rfw');
File matchFile = File('test/match.rfw');
File outputFile = File('test.rfw');
expect(outputFile.existsSync(), true);
expect(
ListEquality()
.equals(resultFile.readAsBytesSync(), resultFile.readAsBytesSync()),
.equals(matchFile.readAsBytesSync(), matchFile.readAsBytesSync()),
true);

outputFile.delete();
Expand All @@ -27,12 +27,12 @@ void main() {
['run', 'bin/txt2rfw.dart', "test/test.rfwtxt", "-o", "test.rfw"]);
await process.stdout.transform(utf8.decoder).forEach(print);
await process.stderr.transform(utf8.decoder).forEach(print);
File resultFile = File('test/match.rfw');
File matchFile = File('test/match.rfw');
File outputFile = File('test.rfw');
expect(outputFile.existsSync(), true);
expect(
ListEquality()
.equals(resultFile.readAsBytesSync(), resultFile.readAsBytesSync()),
.equals(matchFile.readAsBytesSync(), matchFile.readAsBytesSync()),
true);

outputFile.delete();
Expand Down

0 comments on commit f0b30bc

Please sign in to comment.