mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: support -stats for _test.v files
This commit is contained in:
@@ -85,20 +85,8 @@ fn (b mut BenchedTests) end_testing() {
|
||||
|
||||
// ///////////////////////////////////////////////////////////////////
|
||||
fn nasserts(n int) string {
|
||||
if n == 0 {
|
||||
return '${n:2d} asserts | '
|
||||
}
|
||||
if n == 1 {
|
||||
return '${n:2d} assert | '
|
||||
}
|
||||
if n < 10 {
|
||||
return '${n:2d} asserts | '
|
||||
}
|
||||
if n < 100 {
|
||||
return '${n:3d} asserts | '
|
||||
}
|
||||
if n < 1000 {
|
||||
return '${n:4d} asserts | '
|
||||
return '${n:5d} assert | '
|
||||
}
|
||||
return '${n:5d} asserts | '
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user