Don't parse if there are no flags.

This commit is contained in:
Erik C. Thauvin 2021-10-16 02:25:04 -07:00
parent fd3661b21b
commit edb77726f1
4 changed files with 71 additions and 49 deletions

View file

@ -269,5 +269,13 @@ void main() {
lines = await tmp.readAsLines();
expect(lines.length, 2, reason: "two lines");
});
test('Test cat file -', () async {
var tmp = tmpFile();
await cat([sampleFile, '-'], tmp.openWrite(),
input: mockStdin(text: '\n$sampleText'));
var lines = await tmp.readAsLines();
expect(lines.last, equals(sampleText));
});
});
}
}