@@ -4,39 +4,39 @@ import { Int64 } from './int64.js';
44import { List } from './list.js' ;
55
66test ( 'list' , ( t ) => {
7- const l = new List ( Int64 ) ;
8- t . deepEqual ( l , new List ( Int64 ) ) ;
7+ const l = new List ( new Int64 ( ) ) ;
8+ t . deepEqual ( l , new List ( new Int64 ( ) ) ) ;
99
1010 l . value = [ new Int64 ( 17 ) , new Int64 ( 19 ) , new Int64 ( null ) ] ;
1111 t . is ( l . length , 3 ) ;
1212} ) ;
1313
1414test ( 'list equality' , ( t ) => {
15- const l1 = new List ( Int64 ) ;
15+ const l1 = new List ( new Int64 ( ) ) ;
1616 l1 . value = [ new Int64 ( 17 ) , new Int64 ( 19 ) , new Int64 ( null ) ] ;
1717
18- const l2 = new List ( Int64 ) ;
18+ const l2 = new List ( new Int64 ( ) ) ;
1919 l2 . value = [ new Int64 ( 17 ) , new Int64 ( 19 ) , new Int64 ( null ) ] ;
2020
2121 t . deepEqual ( l1 , l2 ) ;
2222} ) ;
2323
2424test ( 'list inequality' , ( t ) => {
25- const l1 = new List ( Int64 ) ;
25+ const l1 = new List ( new Int64 ( ) ) ;
2626 l1 . value = new Int64 ( 4 ) ;
2727
28- const l2 = new List ( Int64 ) ;
28+ const l2 = new List ( new Int64 ( ) ) ;
2929 l2 . value = new Int64 ( 7 ) ;
3030
3131 t . notDeepEqual ( l1 , l2 ) ;
3232} ) ;
3333
3434test ( 'list equality when invalid' , ( t ) => {
35- const l1 = new List ( Int64 ) ;
36- l1 . value = new Int64 ( null ) ;
35+ const l1 = new List ( new Int64 ( ) ) ;
36+ l1 . value = new Int64 ( ) ;
3737
38- const l2 = new List ( Int64 ) ;
39- l2 . value = new Int64 ( null ) ;
38+ const l2 = new List ( new Int64 ( ) ) ;
39+ l2 . value = new Int64 ( ) ;
4040
4141 t . deepEqual ( l1 , l2 ) ;
4242} ) ;
0 commit comments