Fix carriage return
This commit is contained in:
parent
efa039b64b
commit
676684397e
5 changed files with 103 additions and 78 deletions
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:libac_dart/utils/IOTools.dart';
|
||||
import 'package:test/expect.dart';
|
||||
import 'package:test/scaffolding.dart';
|
||||
|
@ -9,7 +11,7 @@ Future<void> main() async {
|
|||
});
|
||||
|
||||
test("Test directory size checking", () async {
|
||||
expect(await getDirectorySize("test"), 9046);
|
||||
expect(await getDirectorySize("test"), 9981);
|
||||
});
|
||||
|
||||
test("Test file info methods", () async {
|
||||
|
@ -29,4 +31,19 @@ Future<void> main() async {
|
|||
expect(list[0].size > ascList[0].size, true);
|
||||
expect(list[list.length - 1].size == ascList[0].size, true);
|
||||
});
|
||||
|
||||
test("Test prnt", () async {
|
||||
try {
|
||||
var i = stdout.terminalColumns;
|
||||
} catch (E) {
|
||||
expect(1, 1);
|
||||
return;
|
||||
}
|
||||
await prnt("> Processing");
|
||||
await prnt("> Process..\r");
|
||||
await prnt("> Please stand by...\r");
|
||||
await prnt("\rComplete!\n");
|
||||
|
||||
expect(1, 1);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue