Comparing version 0.0.2 to 0.0.3
@@ -72,32 +72,2 @@ function CBuffer() { | ||
var tmp = new CBuffer( 5 ); | ||
tmp.push( 1, 2, 3 ); | ||
console.log( tmp.data ); | ||
console.log( tmp.shift()); | ||
console.log( tmp.data ); | ||
tmp.push( 4, 5 ); | ||
console.log( tmp.data ); | ||
return; | ||
tmp.push( 'happy', 'sad', 'other', 'and', 'what', 'is', 'this', 'test' ) | ||
console.log( tmp.pop() ); | ||
console.log( tmp.first() ); | ||
console.log( tmp.last() ); | ||
console.log( '==============' ); | ||
/* debug:start */ | ||
console.log( tmp.data ); | ||
/* debug:stop */ | ||
tmp.push( 'ugh' ); | ||
console.log( tmp.first() ); | ||
/* debug:start */ | ||
console.log( tmp.data ); | ||
/* debug:stop */ | ||
console.log( tmp.last() ); | ||
tmp.clear(); | ||
console.log( tmp.data ); | ||
this.CBuffer = CBuffer; |
{ | ||
"name" : "CBuffer", | ||
"version" : "0.0.2", | ||
"version" : "0.0.3", | ||
"description" : "Circular Buffer JavaScript implementation", | ||
@@ -5,0 +5,0 @@ "homepage" : "http://github.com/trevnorris/cbuffer", |
2947
70