Skip to content

Commit

Permalink
🔍 test(sieves): Use correct API method usqrt32.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed May 4, 2020
1 parent ee36153 commit a958e63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/src/sieve/sieves.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import test from 'ava' ;

import { alloc , fill , get , set } from "@aureooms/js-array" ;
import { usqrt } from "@aureooms/js-uint32" ;
import { usqrt32 } from "@aureooms/js-uint32" ;
import functools from "@aureooms/js-functools" ;
import * as itertools from "@aureooms/js-itertools" ;

Expand Down Expand Up @@ -31,9 +31,9 @@ function run ( [ [ sievename , sieve ] , n ] ) {
const inputs = itertools.product( [

[
[ "Eratosthenes" , prime.__eratosthenes__( alloc , fill , get , gothrough , usqrt ) ],
[ "Eratosthenes - 2" , prime.__eratosthenes2__( alloc , fill , get , gothrough , usqrt ) ],
[ "Eratosthenes - 2 , 3" , prime.__eratosthenes23__( alloc , fill , get , gothrough , usqrt ) ]
[ "Eratosthenes" , prime.__eratosthenes__( alloc , fill , get , gothrough , usqrt32 ) ],
[ "Eratosthenes - 2" , prime.__eratosthenes2__( alloc , fill , get , gothrough , usqrt32 ) ],
[ "Eratosthenes - 2 , 3" , prime.__eratosthenes23__( alloc , fill , get , gothrough , usqrt32 ) ]
],
[ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 10 , 15 , 49 ,100 , 200 , 1000 , 7919 ]

Expand Down

0 comments on commit a958e63

Please sign in to comment.