Skip to content

Commit

Permalink
trigger ci
Browse files Browse the repository at this point in the history
  • Loading branch information
folkvir committed May 17, 2024
1 parent 43e2f72 commit e738c48
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/cuckoo-filter.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { expect, test } from '@jest/globals'
import { CuckooFilter, ExportedCuckooFilter, getBigIntAbs, randomInt } from '../src/index'
import { CuckooFilter, ExportedCuckooFilter } from '../src/index'

// const seed = BigInt(randomInt(0, Number.MAX_SAFE_INTEGER))
// const seed = 8959374062914912n
const seed = 7409732628718466n
console.log(seed)

test('should compute the fingerprint and indexes for an element', () => {
const filter = new CuckooFilter(15, 3, 2, 1)
Expand Down Expand Up @@ -148,12 +147,9 @@ test('should look inside every possible bucket', () => {
const locations = filter._locations(element)

filter.add(element)
console.log(filter)
filter.add(element)
console.log(filter)
expect(filter.remove(element)).toBe(true)
expect(filter._filter[locations.firstIndex].length).toEqual(0)
console.log(filter)
expect(filter.remove(element)).toBe(true)
expect(filter._filter[locations.secondIndex].length).toEqual(0)
})
Expand Down

0 comments on commit e738c48

Please sign in to comment.