Comparing version 0.1.1 to 0.1.2
@@ -14,4 +14,3 @@ /* | ||
exports.Toni = ( function () { | ||
var log = console.log | ||
, Bolgia = require( 'bolgia' ) | ||
var Bolgia = require( 'bolgia' ) | ||
, abs = Math.abs | ||
@@ -21,3 +20,2 @@ , ceil = Math.ceil | ||
, floor = Math.floor | ||
, round = Math.round | ||
, clone = Bolgia.clone | ||
@@ -24,0 +22,0 @@ , improve = Bolgia.improve |
{ | ||
"name": "toni" | ||
, "version": "0.1.1" | ||
, "version": "0.1.2" | ||
, "description": "Toni, a simple and efficient bitmap implementation for integer sets, using bitwise operations and a Buffer. Modifying a single bit instead of an entire byte, obviously saves 87.5% of Buffer space, with low performance loss." | ||
@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/toni" |
@@ -77,2 +77,18 @@ /* | ||
log(); | ||
// CLEAR | ||
log( '- manually fill entire Buffer with %d\'s', 0x01 ); | ||
toni.btable.fill( 0x01 ); | ||
log( '- now #clear() bitmap' ); | ||
toni.clear(); | ||
log( '- bitmap should be empty' ); | ||
for ( i = 0; i < toni.btable.length; i++ ) assert.equal( toni.btable[ i ], 0x00, 'Something goes wrong with clear function!' ); | ||
assert.equal( toni.items, 0, 'wrong value for item counter!' ); | ||
exit(); | ||
@@ -79,0 +95,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24842
311