Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/share/.cache/yarn/v6/npm-tape-5.6.1-integrity/node_modules/tape/test/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 'use strict';
var tap = require('tap');
var path = require('path');
var spawn = require('child_process').spawn;
var concat = require('concat-stream');
var stripFullStack = require('./common').stripFullStack;
tap.test('default messages', function (t) {
t.plan(1);
var ps = spawn(process.execPath, [path.join(__dirname, 'messages', 'defaults.js')]);
ps.stdout.pipe(concat(function (rows) {
t.same(stripFullStack(rows.toString('utf8')), [
'TAP version 13',
'# default messages',
'ok 1 should be truthy',
'ok 2 should be falsy',
'ok 3 should be strictly equal',
'ok 4 should not be strictly equal',
'ok 5 should be loosely equal',
'ok 6 should not be loosely equal',
'ok 7 should be strictly equal',
'ok 8 should not be strictly equal',
'ok 9 should be deeply equivalent',
'not ok 10 should not be deeply equivalent',
' ---',
' operator: notDeepEqual',
' expected: true',
' actual: true',
' at: Test.<anonymous> ($TEST/messages/defaults.js:$LINE:$COL)',
' stack: |-',
' Error: should not be deeply equivalent',
' [... stack stripped ...]',
' at Test.<anonymous> ($TEST/messages/defaults.js:$LINE:$COL)',
' [... stack stripped ...]',
' ...',
'ok 11 should be loosely deeply equivalent',
'ok 12 should not be loosely deeply equivalent',
'',
'1..12',
'# tests 12',
'# pass 11',
'# fail 1',
'',
''
]);
}));
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0117 ]-- |