stack-ds
Advanced tools
Comparing version 1.0.0 to 1.0.1
/** | ||
* New node file | ||
* stack-ds | ||
* A simple stack library | ||
* Copyright (c) 2016 Skevos Papamichail | ||
*/ | ||
@@ -110,2 +112,3 @@ | ||
this.copy = function(other){ | ||
if(!Stack.isStack(other)) return null; | ||
_max_size = other.getMaxSize(); | ||
@@ -112,0 +115,0 @@ _data = []; |
{ | ||
"name": "stack-ds", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple stack data structure.", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -43,2 +43,4 @@ | ||
* **.toArray()** - Exports an array with stacks's data. `mystack.toArray();` | ||
## TEST | ||
@@ -45,0 +47,0 @@ |
@@ -106,2 +106,6 @@ var Stack = require('../'); | ||
}); | ||
it('The Stack should be full', function(){ | ||
assert.equal(true,s.isFull()); | ||
}); | ||
it('The size of stack should be 4', function(){ | ||
@@ -108,0 +112,0 @@ assert.equal(4,s.size()); |
13179
385
63