20
20
21
21
// MODULES //
22
22
23
- var tape = require ( 'tape' ) ;
24
- var parse = require ( '@stdlib/complex/base/parse/ lib') ;
23
+ var tape = require ( 'tape' ) ;
24
+ var parse = require ( './../ lib' ) ;
25
25
26
26
27
27
// TESTS //
28
28
29
- tape ( 'main export is a function' , function test ( t ) {
30
- t . ok ( true , __filename ) ;
31
- t . strictEqual ( typeof parse , 'function' , 'main export is a function' ) ;
29
+ tape ( 'main export is a function' , function test ( t ) {
30
+ t . ok ( true , __filename ) ;
31
+ t . strictEqual ( typeof parse , 'function' , 'main export is a function' ) ;
32
32
t . end ( ) ;
33
33
} ) ;
34
34
35
- tape ( 'the function returns complex like object if provided valid complex string' , function test ( t ) {
35
+ tape ( 'the function returns complex like object if provided valid complex string' , function test ( t ) {
36
36
var tests ;
37
37
var i ;
38
38
@@ -144,13 +144,13 @@ tape( 'the function returns complex like object if provided valid complex string
144
144
}
145
145
] ;
146
146
147
- for ( i = 0 ; i < tests . length ; i ++ ) {
148
- t . deepEqual ( parse ( tests [ i ] . value ) , tests [ i ] . expected , 'returns expected complex like object' ) ;
147
+ for ( i = 0 ; i < tests . length ; i ++ ) {
148
+ t . deepEqual ( parse ( tests [ i ] . value ) , tests [ i ] . expected , 'returns expected complex like object' ) ;
149
149
}
150
150
t . end ( ) ;
151
151
} ) ;
152
152
153
- tape ( 'the function returns null if provided input is not a complex number string' , function test ( t ) {
153
+ tape ( 'the function returns null if provided input is not a complex number string' , function test ( t ) {
154
154
var values ;
155
155
var i ;
156
156
@@ -164,8 +164,8 @@ tape('the function returns null if provided input is not a complex number string
164
164
NaN
165
165
] ;
166
166
167
- for ( i = 0 ; i < values . length ; i ++ ) {
168
- t . strictEqual ( parse ( values [ i ] ) , null , 'returns null' ) ;
167
+ for ( i = 0 ; i < values . length ; i ++ ) {
168
+ t . strictEqual ( parse ( values [ i ] ) , null , 'returns null' ) ;
169
169
}
170
170
t . end ( ) ;
171
171
} ) ;
0 commit comments