mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 10:20:09 +00:00
minor simplification...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
95efdde4ee
commit
f430f27e1a
12
test.js
12
test.js
@ -540,9 +540,9 @@ argv.Parser({
|
|||||||
.flat() }
|
.flat() }
|
||||||
// XXX should this account for pass-through elements...
|
// XXX should this account for pass-through elements...
|
||||||
var len = function(s){
|
var len = function(s){
|
||||||
return object.parentOf(Merged, s) ?
|
return ''+ (object.parentOf(Merged, s) ?
|
||||||
s.size
|
s.size
|
||||||
: Object.keys(s).length }
|
: Object.keys(s).length) }
|
||||||
console.log(
|
console.log(
|
||||||
object.text`
|
object.text`
|
||||||
Tests run by %s can be of the following forms:
|
Tests run by %s can be of the following forms:
|
||||||
@ -551,23 +551,23 @@ argv.Parser({
|
|||||||
<setup>:<test>
|
<setup>:<test>
|
||||||
<setup>:<modifier>:<test>
|
<setup>:<modifier>:<test>
|
||||||
|
|
||||||
Setups (${ len(this.setups) || '0' }):
|
Setups (${ len(this.setups) }):
|
||||||
${ keys(this.setups).join('\n\
|
${ keys(this.setups).join('\n\
|
||||||
') }
|
') }
|
||||||
|
|
||||||
Modifiers (${ (len(this.modifiers) - 1) || '0' }):
|
Modifiers (${ len(this.modifiers) - 1 + '' }):
|
||||||
${ keys(this.modifiers)
|
${ keys(this.modifiers)
|
||||||
.filter(function(e){ return e != '-' })
|
.filter(function(e){ return e != '-' })
|
||||||
.join('\n\
|
.join('\n\
|
||||||
') }
|
') }
|
||||||
|
|
||||||
Tests (${ (len(this.tests) - 1) || '0' }):
|
Tests (${ len(this.tests) - 1 + ''}):
|
||||||
${ keys(this.tests)
|
${ keys(this.tests)
|
||||||
.filter(function(e){ return e != '-' })
|
.filter(function(e){ return e != '-' })
|
||||||
.join('\n\
|
.join('\n\
|
||||||
') }
|
') }
|
||||||
|
|
||||||
Standalone test cases (${ len(this.cases) || '0' }):
|
Standalone test cases (${ len(this.cases) }):
|
||||||
${ keys(this.cases).join('\n\
|
${ keys(this.cases).join('\n\
|
||||||
') }
|
') }
|
||||||
`, this.scriptName)
|
`, this.scriptName)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user