Comparing version 0.1.2 to 0.2.0
@@ -51,2 +51,3 @@ /* | ||
me.btable.fill( 0x00 ); | ||
me.items = 0; | ||
return me; | ||
@@ -53,0 +54,0 @@ }; |
{ | ||
"name": "toni" | ||
, "version": "0.1.2" | ||
, "version": "0.2.0" | ||
, "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" |
@@ -94,4 +94,4 @@ ### Toni | ||
* Add an integer value to the set and test item/value presence in the set. | ||
* When the value is out of range, or if the element is already in the | ||
* set, the operation fails and it returns -1. | ||
* When the value is out of range, or if the element is already present, the | ||
* operation fails and it returns -1. | ||
* | ||
@@ -98,0 +98,0 @@ */ |
@@ -83,2 +83,5 @@ /* | ||
log( '- manually set items to %d', n ); | ||
toni.items = n; | ||
log( '- now #clear() bitmap' ); | ||
@@ -90,6 +93,5 @@ toni.clear(); | ||
log( '- check item property, should be %d', 0 ); | ||
assert.equal( toni.items, 0, 'Something goes wrong with clear function, wrong value for item counter!!' ); | ||
assert.equal( toni.items, 0, 'wrong value for item counter!' ); | ||
exit(); | ||
@@ -96,0 +98,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
25020
315