Fixed failed test cases for github action

This commit is contained in:
thomashii 2022-01-08 16:01:30 +08:00
parent cad8ae2e60
commit df52801c66

View file

@ -3,7 +3,12 @@ import 'package:io/ansi.dart';
void printSeparator(String title) { void printSeparator(String title) {
var b = StringBuffer('===' + title.toUpperCase()); var b = StringBuffer('===' + title.toUpperCase());
for (var i = b.length; i < stdout.terminalColumns - 3; i++) {
int columns = 80;
if (stdout.hasTerminal) {
columns = stdout.terminalColumns - 3;
}
for (var i = b.length; i < columns; i++) {
b.write('='); b.write('=');
} }
for (var i = 0; i < 3; i++) { for (var i = 0; i < 3; i++) {