made output of assert.array(..) better...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-01-05 05:54:16 +03:00
parent 3c47f6b85d
commit 7ef4842646
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ig-test",
"version": "1.5.8",
"version": "1.5.9",
"description": "experimental test runner....",
"main": "test.js",
"bin": {

View File

@ -235,7 +235,9 @@ object.Constructor('Assert', {
array: function(value, expected, msg){
msg = msg || ''
return this(arrayCmp(value, expected),
msg +':', 'expected:', expected, 'got:', value) },
msg +':',
'\n expected:', expected,
'\n got:', value) },
// output...
log: function(...args){