@@ -33,13 +33,17 @@ export const boolVectors: ConstantTestVector<boolean>[] = [
3333export const byteVectors : ConstantTestVector < number > [ ] = [
3434 { hex : "0201" , value : 1 } ,
3535 { hex : "0202" , value : 2 } ,
36- { hex : "024c" , value : 76 }
36+ { hex : "024c" , value : 76 } ,
37+ { hex : "027f" , value : 127 } , // max i8
38+ { hex : "0280" , value : - 128 } // min i8
3739] ;
3840
3941export const shortVectors : ConstantTestVector < number > [ ] = [
4042 { hex : "0302" , value : 1 } ,
4143 { hex : "0303" , value : - 2 } ,
42- { hex : "0322" , value : 17 }
44+ { hex : "0322" , value : 17 } ,
45+ { hex : "03feff03" , value : 32767 } , // max i16
46+ { hex : "03ffff03" , value : - 32768 } // min i16
4347] ;
4448
4549export const intVectors : ConstantTestVector < number > [ ] = [
@@ -51,7 +55,9 @@ export const intVectors: ConstantTestVector<number>[] = [
5155 { hex : "042d" , value : - 23 } ,
5256 { hex : "04800f" , value : 960 } ,
5357 { hex : "04808008" , value : 65536 } ,
54- { hex : "04808023" , value : 286720 }
58+ { hex : "04808023" , value : 286720 } ,
59+ { hex : "04feffffffffffffffff01" , value : 2147483647 } , // max i32
60+ { hex : "04ffffffffffffffffff01" , value : - 2147483648 } // min i32
5561] ;
5662
5763export const longVectors : ConstantTestVector < bigint | string > [ ] = [
@@ -75,7 +81,9 @@ export const longVectors: ConstantTestVector<bigint | string>[] = [
7581 { hex : "0580809d80d0bf9901" , value : 337543627513856n } ,
7682 { hex : "058080cba684a68201" , value : 286526435581952n } ,
7783 { hex : "058080b4ccd4dfc603" , value : 1000000000000000n } ,
78- { hex : "058080a0f6f4acdbe01b" , value : 1000000000000000000n }
84+ { hex : "058080a0f6f4acdbe01b" , value : 1000000000000000000n } ,
85+ { hex : "05feffffffffffffffff01" , value : 9223372036854775807n } , // max i64
86+ { hex : "05ffffffffffffffffff01" , value : - 9223372036854775808n } // min i64
7987] ;
8088
8189export const bigintVectors : ConstantTestVector < string > [ ] = [
0 commit comments