Don't parse if there are no flags.
This commit is contained in:
parent
fd3661b21b
commit
edb77726f1
4 changed files with 71 additions and 49 deletions
|
@ -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));
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue