@@ -43,7 +43,7 @@ func TestFaker_Schema(t *testing.T) {
4343 schema : "{ type: ['string', 'integer'] }" ,
4444 test : func (t * testing.T , v goja.Value , err error ) {
4545 r .NoError (t , err )
46- r .Equal (t , 7.424164296119123e+18 , v .Export ())
46+ r .Equal (t , int64 ( - 168643 ) , v .Export ())
4747 },
4848 },
4949 {
@@ -119,7 +119,7 @@ func TestFaker_Schema(t *testing.T) {
119119 schema : "{ multipleOf: 3 }" ,
120120 test : func (t * testing.T , v goja.Value , err error ) {
121121 r .NoError (t , err )
122- r .Equal (t , int64 (6648 ), v .Export ())
122+ r .Equal (t , int64 (162 ), v .Export ())
123123 },
124124 },
125125 {
@@ -134,7 +134,7 @@ func TestFaker_Schema(t *testing.T) {
134134 schema : "{ maximum: 3 }" ,
135135 test : func (t * testing.T , v goja.Value , err error ) {
136136 r .NoError (t , err )
137- r .Equal (t , - 1.6332447240352712e+308 , v .Export ())
137+ r .Equal (t , - 908522.2605665276 , v .Export ())
138138 },
139139 },
140140 {
@@ -149,7 +149,7 @@ func TestFaker_Schema(t *testing.T) {
149149 schema : "{ exclusiveMaximum: 3 }" ,
150150 test : func (t * testing.T , v goja.Value , err error ) {
151151 r .NoError (t , err )
152- r .Equal (t , - 1.6332447240352712e+308 , v .Export ())
152+ r .Equal (t , - 908522.2605665276 , v .Export ())
153153 },
154154 },
155155 {
@@ -164,7 +164,7 @@ func TestFaker_Schema(t *testing.T) {
164164 schema : "{ minimum: 3 }" ,
165165 test : func (t * testing.T , v goja.Value , err error ) {
166166 r .NoError (t , err )
167- r .Equal (t , 1.644484108270445e+307 , v .Export ())
167+ r .Equal (t , 91480.19056868234 , v .Export ())
168168 },
169169 },
170170 {
@@ -179,7 +179,7 @@ func TestFaker_Schema(t *testing.T) {
179179 schema : "{ exclusiveMinimum: 3 }" ,
180180 test : func (t * testing.T , v goja.Value , err error ) {
181181 r .NoError (t , err )
182- r .Equal (t , 1.644484108270445e+307 , v .Export ())
182+ r .Equal (t , 91480.19056868234 , v .Export ())
183183 },
184184 },
185185 {
@@ -284,7 +284,7 @@ func TestFaker_Schema(t *testing.T) {
284284 schema : "{ minItems: 3, }" ,
285285 test : func (t * testing.T , v goja.Value , err error ) {
286286 r .NoError (t , err )
287- r .Equal (t , []any {true , int64 (6224634831868504800 ), "ZuoWq vY5elXhlD" , []interface {}{2.3090412168364615e+307 , "lYehCIA" , map [string ]interface {}{"caravan" : true , "hail" : 2.536044080333601e+307 , "mob" : int64 (- 287411453310397474 ), "scale" : true }, false }, false , []interface {}{true , int64 (1769588974883905016 ), 7.53537259781811e+307 }, false , "LWxKt" }, v .Export ())
287+ r .Equal (t , []any {true , int64 (- 354976 ), "ZuoWq vY5elXhlD" , []interface {}{- 743110.6375100765 , "lYehCIA" , map [string ]interface {}{"caravan" : true , "hail" : - 717855.7306413883 , "mob" : int64 (- 679449 ), "scale" : true }, false }, false , []interface {}{true , int64 (859972 ), - 161661.97092417115 }, false , "LWxKt" }, v .Export ())
288288 },
289289 },
290290 {
@@ -299,7 +299,7 @@ func TestFaker_Schema(t *testing.T) {
299299 schema : "{ uniqueItems: true, }" ,
300300 test : func (t * testing.T , v goja.Value , err error ) {
301301 r .NoError (t , err )
302- r .Equal (t , []any {true , int64 (6224634831868504800 ), "ZuoWq vY5elXhlD" , []any {2.3090412168364615e+307 , "lYehCIA" , map [string ]any {"caravan" : true , "hail" : 2.536044080333601e+307 , "mob" : int64 (- 287411453310397474 ), "scale" : true }, false }, false }, v .Export ())
302+ r .Equal (t , []any {true , int64 (- 354976 ), "ZuoWq vY5elXhlD" , []any {- 743110.6375100765 , "lYehCIA" , map [string ]any {"caravan" : true , "hail" : - 717855.7306413883 , "mob" : int64 (- 679449 ), "scale" : true }, false }, false }, v .Export ())
303303 },
304304 },
305305 {
@@ -329,7 +329,7 @@ func TestFaker_Schema(t *testing.T) {
329329 schema : "{ contains: { type: 'string' } }" ,
330330 test : func (t * testing.T , v goja.Value , err error ) {
331331 r .NoError (t , err )
332- r .Equal (t , []any {[]any {true , int64 (1769588974883905016 ), 7.53537259781811e+307 }, "wYx?vY5elXhlD" , []any {2.3090412168364615e+307 , "lYehCIA" , map [string ]any {"caravan" : true , "hail" : 2.536044080333601e+307 , "mob" : int64 (- 287411453310397474 ), "scale" : true }, false }, false , "idZ" }, v .Export ())
332+ r .Equal (t , []any {[]any {true , int64 (859972 ), - 161661.97092417115 }, "wYx?vY5elXhlD" , []any {- 743110.6375100765 , "lYehCIA" , map [string ]any {"caravan" : true , "hail" : - 717855.7306413883 , "mob" : int64 (- 679449 ), "scale" : true }, false }, false , "idZ" }, v .Export ())
333333 },
334334 },
335335 {
@@ -344,7 +344,7 @@ func TestFaker_Schema(t *testing.T) {
344344 schema : "{ contains: { type: 'string' }, minContains: 4 }" ,
345345 test : func (t * testing.T , v goja.Value , err error ) {
346346 r .NoError (t , err )
347- r .Equal (t , []any {"LWxKt" , "wYx?vY5elXhlD" , "VhgPevuwyrNrL" , 3.411011869388561e+307 , 6.118679555323457e+307 , "lVeCZKW1JKqG" , true , []interface {}{}, "idZ" }, v .Export ())
347+ r .Equal (t , []any {"LWxKt" , "wYx?vY5elXhlD" , "VhgPevuwyrNrL" , - 620512.3329182866 , - 319274.3036433653 , "lVeCZKW1JKqG" , true , []interface {}{}, "idZ" }, v .Export ())
348348 },
349349 },
350350 {
@@ -359,7 +359,7 @@ func TestFaker_Schema(t *testing.T) {
359359 schema : "{ contains: { type: 'string' }, maxContains: 2 }" ,
360360 test : func (t * testing.T , v goja.Value , err error ) {
361361 r .NoError (t , err )
362- r .Equal (t , []any {" vY5elXhlD4ezl" , 1.260262124648351e+307 , 1.1925608819819514e+308 , int64 (3859340644268985534 ), "idZ" }, v .Export ())
362+ r .Equal (t , []any {" vY5elXhlD4ezl" , - 859791.1845789105 , 326768.021588166 , int64 (628235 ), "idZ" }, v .Export ())
363363 },
364364 },
365365 {
@@ -389,7 +389,7 @@ func TestFaker_Schema(t *testing.T) {
389389 schema : "{ maxProperties: 3 }" ,
390390 test : func (t * testing.T , v goja.Value , err error ) {
391391 r .NoError (t , err )
392- r .Equal (t , map [string ]any {"woman" : int64 (6224634831868504800 )}, v .Export ())
392+ r .Equal (t , map [string ]any {"woman" : int64 (- 354976 )}, v .Export ())
393393 },
394394 },
395395 {
@@ -404,7 +404,7 @@ func TestFaker_Schema(t *testing.T) {
404404 schema : "{ minProperties: 3 }" ,
405405 test : func (t * testing.T , v goja.Value , err error ) {
406406 r .NoError (t , err )
407- r .Equal (t , map [string ]any {"bunch" : 1.1925608819819514e+308 , "gang" : int64 (3859340644268985534 ), "growth" : " vY5elXhlD4ezl" , "woman" : 1.260262124648351e+307 }, v .Export ())
407+ r .Equal (t , map [string ]any {"bunch" : 326768.021588166 , "gang" : int64 (628235 ), "growth" : " vY5elXhlD4ezl" , "woman" : - 859791.1845789105 }, v .Export ())
408408 },
409409 },
410410 {
@@ -458,9 +458,9 @@ func TestFaker_Schema(t *testing.T) {
458458 test : func (t * testing.T , v goja.Value , err error ) {
459459 r .NoError (t , err )
460460 r .Equal (t , map [string ]any {
461- "I_4VX" : int64 (4336346668576341540 ),
461+ "I_4VX" : int64 (- 908662 ),
462462 "S_kY9X3W" : "m" ,
463- "builtin" : 5.544677937412537e+307 ,
463+ "builtin" : - 383134.1033810867 ,
464464 "group" : "CKu" ,
465465 "ocean" : "LJgmr9arWgSfi" ,
466466 "party" : "m" ,
@@ -477,7 +477,7 @@ func TestFaker_Schema(t *testing.T) {
477477 r .Equal (t , map [string ]any {
478478 "Gt8" : "X" ,
479479 "Jd" : "D4ezlYehCIA0O" ,
480- "MTgAEPI" : int64 (- 3961972703762434141 ),
480+ "MTgAEPI" : int64 (990471 ),
481481 "PgmZE3" : false ,
482482 }, v .Export ())
483483 },
@@ -544,7 +544,7 @@ func TestFaker_Schema(t *testing.T) {
544544 r .Contains (t , m , "foo" )
545545 r .Contains (t , m , "bar" )
546546 r .Contains (t , m , "baz" )
547- r .Equal (t , map [string ]any {"bar" : int64 (6224634831868504800 ), "baz" : "ZuoWq vY5elXhlD" , "foo" : true }, m )
547+ r .Equal (t , map [string ]any {"bar" : int64 (- 354976 ), "baz" : "ZuoWq vY5elXhlD" , "foo" : true }, m )
548548 },
549549 },
550550 {
@@ -589,7 +589,7 @@ func TestFaker_Schema(t *testing.T) {
589589 r .NoError (t , err )
590590 m := v .Export ()
591591 r .Contains (t , m , "bar" )
592- r .Equal (t , map [string ]any {"bar" : 1.1291386311317026e+308 , "foo" : "XidZuoWq " }, m )
592+ r .Equal (t , map [string ]any {"bar" : 256208.42538087885 , "foo" : "XidZuoWq " }, m )
593593 },
594594 },
595595 {
0 commit comments