![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/lib/node_modules/random-number/test/ |
Upload File : |
void function(){ "use strict" var test = require('tape') var claire = require('claire') var for_all = claire.forAll var check = claire.check function value(size, gen){ return claire.value(size, gen, gen) } function check_property(args, property, analyze, count){ test(property.title, function(t){ var checks = for_all.apply(null, args) .satisfy(property.fn) if ( analyze != null ) checks = checks.classify(analyze) var results = check(count, checks) results.failed.forEach(function(result){ console.log(results+'') t.fail('') }) if ( results.failed.length == 0 ) { t.pass('all test passed') } t.end() }) } module.exports = function(options, properties, analyze, count){ return properties.forEach(function(prop, idx, properties){ return check_property(options, prop, analyze, count || 100) }) } module.exports.value = value }()