Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

busca-palabras

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

busca-palabras - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

package.json
{
"name": "busca-palabras",
"version": "1.0.2",
"version": "1.0.3",
"main": "./src/buscapalabrasengine.js",
"scripts": {
"test": "mocha"
"test": "nyc mocha"
},

@@ -18,4 +18,5 @@ "keywords": [

"devDependencies": {
"mocha": "^9.2.0"
"mocha": "^9.2.0",
"nyc": "^15.1.0"
}
}

@@ -15,14 +15,15 @@ class BuscaPalabrasEngine {

output(){
console.log('parcial:')
output(log){
log = log || console.log;
log('parcial:')
for ( let linea of this.parcial ){
let lineStr = linea.map(i=>i===null?'_':i).join(' ');
console.log(lineStr);
log(lineStr);
}
console.log('\ncompleto:')
log('\ncompleto:')
for ( let linea of this.completo ){
let lineStr = linea.map(i=>i===null?'_':i).join(' ');
console.log(lineStr);
log(lineStr);
}
console.log(`\nsolucion:\n ${JSON.stringify(this.solucion)}`);
log(`\nsolucion:\n ${JSON.stringify(this.solucion)}`);
}

@@ -29,0 +30,0 @@

@@ -205,2 +205,12 @@ let assert = require('assert');

});
it ('prueba el output',()=>{
let cuadrado = new BuscaPalabrasEngine(['uno','dos']);
cuadrado.genera();
let result = '';
cuadrado.output(str=>result+=str);
assert.strictEqual(result.includes('parcial:'),true);
assert.strictEqual(result.includes('completo:'),true);
assert.strictEqual(result.includes('solucion:'),true);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc