1616* limitations under the License.
1717*/
1818
19- import incrmpcorrdist = require( './index' ) ;
19+ import incrnanmpcorrdist = require( './index' ) ;
2020
2121
2222// TESTS //
2323
2424// The function returns an accumulator function...
2525{
26- incrmpcorrdist ( 3 ) ; // $ExpectType accumulator
27- incrmpcorrdist ( 3 , 2.5 , 4.5 ) ; // $ExpectType accumulator
26+ incrnanmpcorrdist ( 3 ) ; // $ExpectType accumulator
27+ incrnanmpcorrdist ( 3 , 2.5 , 4.5 ) ; // $ExpectType accumulator
2828}
2929
3030// The compiler throws an error if the function is provided non-numeric arguments...
3131{
32- incrmpcorrdist ( 2 , '5' ) ; // $ExpectError
33- incrmpcorrdist ( 2 , true ) ; // $ExpectError
34- incrmpcorrdist ( 2 , false ) ; // $ExpectError
35- incrmpcorrdist ( 2 , null ) ; // $ExpectError
36- incrmpcorrdist ( 2 , undefined ) ; // $ExpectError
37- incrmpcorrdist ( 2 , [ ] ) ; // $ExpectError
38- incrmpcorrdist ( 2 , { } ) ; // $ExpectError
39- incrmpcorrdist ( 2 , ( x : number ) : number => x ) ; // $ExpectError
40-
41- incrmpcorrdist ( '5' , 4 ) ; // $ExpectError
42- incrmpcorrdist ( true , 4 ) ; // $ExpectError
43- incrmpcorrdist ( false , 4 ) ; // $ExpectError
44- incrmpcorrdist ( null , 4 ) ; // $ExpectError
45- incrmpcorrdist ( undefined , 4 ) ; // $ExpectError
46- incrmpcorrdist ( [ ] , 4 ) ; // $ExpectError
47- incrmpcorrdist ( { } , 4 ) ; // $ExpectError
48- incrmpcorrdist ( ( x : number ) : number => x , 4 ) ; // $ExpectError
49-
50- incrmpcorrdist ( '5' , 2.5 , 3.5 ) ; // $ExpectError
51- incrmpcorrdist ( true , 2.5 , 3.5 ) ; // $ExpectError
52- incrmpcorrdist ( false , 2.5 , 3.5 ) ; // $ExpectError
53- incrmpcorrdist ( null , 2.5 , 3.5 ) ; // $ExpectError
54- incrmpcorrdist ( undefined , 2.5 , 3.5 ) ; // $ExpectError
55- incrmpcorrdist ( [ ] , 2.5 , 3.5 ) ; // $ExpectError
56- incrmpcorrdist ( { } , 2.5 , 3.5 ) ; // $ExpectError
57- incrmpcorrdist ( ( x : number ) : number => x , 2.5 , 3.5 ) ; // $ExpectError
32+ incrnanmpcorrdist ( 2 , '5' ) ; // $ExpectError
33+ incrnanmpcorrdist ( 2 , true ) ; // $ExpectError
34+ incrnanmpcorrdist ( 2 , false ) ; // $ExpectError
35+ incrnanmpcorrdist ( 2 , null ) ; // $ExpectError
36+ incrnanmpcorrdist ( 2 , undefined ) ; // $ExpectError
37+ incrnanmpcorrdist ( 2 , [ ] ) ; // $ExpectError
38+ incrnanmpcorrdist ( 2 , { } ) ; // $ExpectError
39+ incrnanmpcorrdist ( 2 , ( x : number ) : number => x ) ; // $ExpectError
40+
41+ incrnanmpcorrdist ( '5' , 4 ) ; // $ExpectError
42+ incrnanmpcorrdist ( true , 4 ) ; // $ExpectError
43+ incrnanmpcorrdist ( false , 4 ) ; // $ExpectError
44+ incrnanmpcorrdist ( null , 4 ) ; // $ExpectError
45+ incrnanmpcorrdist ( undefined , 4 ) ; // $ExpectError
46+ incrnanmpcorrdist ( [ ] , 4 ) ; // $ExpectError
47+ incrnanmpcorrdist ( { } , 4 ) ; // $ExpectError
48+ incrnanmpcorrdist ( ( x : number ) : number => x , 4 ) ; // $ExpectError
49+
50+ incrnanmpcorrdist ( '5' , 2.5 , 3.5 ) ; // $ExpectError
51+ incrnanmpcorrdist ( true , 2.5 , 3.5 ) ; // $ExpectError
52+ incrnanmpcorrdist ( false , 2.5 , 3.5 ) ; // $ExpectError
53+ incrnanmpcorrdist ( null , 2.5 , 3.5 ) ; // $ExpectError
54+ incrnanmpcorrdist ( undefined , 2.5 , 3.5 ) ; // $ExpectError
55+ incrnanmpcorrdist ( [ ] , 2.5 , 3.5 ) ; // $ExpectError
56+ incrnanmpcorrdist ( { } , 2.5 , 3.5 ) ; // $ExpectError
57+ incrnanmpcorrdist ( ( x : number ) : number => x , 2.5 , 3.5 ) ; // $ExpectError
5858}
5959
6060// The compiler throws an error if the function is provided an invalid number of arguments...
6161{
62- incrmpcorrdist ( ) ; // $ExpectError
63- incrmpcorrdist ( 2 , 2 ) ; // $ExpectError
64- incrmpcorrdist ( 2 , 2 , 3 , 4 ) ; // $ExpectError
62+ incrnanmpcorrdist ( ) ; // $ExpectError
63+ incrnanmpcorrdist ( 2 , 2 ) ; // $ExpectError
64+ incrnanmpcorrdist ( 2 , 2 , 3 , 4 ) ; // $ExpectError
6565}
6666
6767// The function returns an accumulator function which returns an accumulated result...
6868{
69- const acc = incrmpcorrdist ( 3 ) ;
69+ const acc = incrnanmpcorrdist ( 3 ) ;
7070
7171 acc ( ) ; // $ExpectType number | null
7272 acc ( 3.14 , 2.0 ) ; // $ExpectType number | null
7373}
7474
7575// The function returns an accumulator function which returns an accumulated result (known means)...
7676{
77- const acc = incrmpcorrdist ( 3 , 2 , - 3 ) ;
77+ const acc = incrnanmpcorrdist ( 3 , 2 , - 3 ) ;
7878
7979 acc ( ) ; // $ExpectType number | null
8080 acc ( 3.14 , 2.0 ) ; // $ExpectType number | null
8181}
8282
8383// The compiler throws an error if the returned accumulator function is provided invalid arguments...
8484{
85- const acc = incrmpcorrdist ( 3 ) ;
85+ const acc = incrnanmpcorrdist ( 3 ) ;
8686
8787 acc ( '5' , 1.0 ) ; // $ExpectError
8888 acc ( true , 1.0 ) ; // $ExpectError
@@ -103,7 +103,7 @@ import incrmpcorrdist = require( './index' );
103103
104104// The compiler throws an error if the returned accumulator function is provided invalid arguments (known means)...
105105{
106- const acc = incrmpcorrdist ( 3 , 2 , - 3 ) ;
106+ const acc = incrnanmpcorrdist ( 3 , 2 , - 3 ) ;
107107
108108 acc ( '5' , 1.0 ) ; // $ExpectError
109109 acc ( true , 1.0 ) ; // $ExpectError
0 commit comments