@@ -202,26 +202,84 @@ var pairs$1 = /* array */[
202
202
]
203
203
] ;
204
204
205
- Mt . from_pair_suites ( "caml_format_test.ml" , Pervasives . $at ( from_of_string ( of_string ) , Pervasives . $at ( /* :: */ [
206
- /* tuple */ [
207
- "isnan_of_string" ,
208
- function ( ) {
209
- return /* Eq */ {
210
- 0 : /* true */ 1 ,
211
- 1 : + ( Caml_float . caml_classify_float ( Caml_format . caml_float_of_string ( "nan" ) ) === /* FP_nan */ 4 ) ,
212
- length : 2 ,
213
- tag : 0
214
- } ;
215
- }
216
- ] ,
217
- /* [] */ 0
218
- ] , Pervasives . $at ( $$Array . to_list ( $$Array . mapi ( function ( i , param ) {
205
+ var suites = Pervasives . $at ( from_of_string ( of_string ) , Pervasives . $at ( /* :: */ [
206
+ /* tuple */ [
207
+ "isnan_of_string" ,
208
+ function ( ) {
209
+ return /* Eq */ {
210
+ 0 : /* true */ 1 ,
211
+ 1 : + ( Caml_float . caml_classify_float ( Caml_format . caml_float_of_string ( "nan" ) ) === /* FP_nan */ 4 ) ,
212
+ length : 2 ,
213
+ tag : 0
214
+ } ;
215
+ }
216
+ ] ,
217
+ /* [] */ 0
218
+ ] , Pervasives . $at ( $$Array . to_list ( $$Array . mapi ( function ( i , param ) {
219
+ var b = param [ 1 ] ;
220
+ var a = param [ 0 ] ;
221
+ return /* tuple */ [
222
+ Caml_curry . app1 ( Printf . sprintf ( /* Format */ {
223
+ 0 : /* String_literal */ {
224
+ 0 : "infinity_of_string " ,
225
+ 1 : /* Int */ {
226
+ 0 : /* Int_d */ 0 ,
227
+ 1 : /* No_padding */ 0 ,
228
+ 2 : /* No_precision */ 0 ,
229
+ 3 : /* End_of_format */ 0 ,
230
+ length : 4 ,
231
+ tag : 4
232
+ } ,
233
+ length : 2 ,
234
+ tag : 11
235
+ } ,
236
+ 1 : "infinity_of_string %d" ,
237
+ length : 2 ,
238
+ tag : 0
239
+ } ) , i ) ,
240
+ function ( ) {
241
+ return /* Eq */ {
242
+ 0 : a ,
243
+ 1 : Caml_float . caml_classify_float ( Caml_format . caml_float_of_string ( b ) ) ,
244
+ length : 2 ,
245
+ tag : 0
246
+ } ;
247
+ }
248
+ ] ;
249
+ } , pairs ) ) , Pervasives . $at ( /* :: */ [
250
+ /* tuple */ [
251
+ "throw" ,
252
+ function ( ) {
253
+ return /* ThrowAny */ {
254
+ 0 : function ( ) {
255
+ return Caml_format . caml_float_of_string ( "" ) ;
256
+ } ,
257
+ length : 1 ,
258
+ tag : 3
259
+ } ;
260
+ }
261
+ ] ,
262
+ /* :: */ [
263
+ /* tuple */ [
264
+ "format_int" ,
265
+ function ( ) {
266
+ return /* Eq */ {
267
+ 0 : " 33" ,
268
+ 1 : Caml_format . caml_format_int ( "%32d" , 33 ) ,
269
+ length : 2 ,
270
+ tag : 0
271
+ } ;
272
+ }
273
+ ] ,
274
+ /* [] */ 0
275
+ ]
276
+ ] , $$Array . to_list ( $$Array . mapi ( function ( i , param ) {
219
277
var b = param [ 1 ] ;
220
278
var a = param [ 0 ] ;
221
279
return /* tuple */ [
222
280
Caml_curry . app1 ( Printf . sprintf ( /* Format */ {
223
281
0 : /* String_literal */ {
224
- 0 : "infinity_of_string " ,
282
+ 0 : "normal_float_of_string " ,
225
283
1 : /* Int */ {
226
284
0 : /* Int_d */ 0 ,
227
285
1 : /* No_padding */ 0 ,
@@ -233,70 +291,33 @@ Mt.from_pair_suites("caml_format_test.ml", Pervasives.$at(from_of_string(of_stri
233
291
length : 2 ,
234
292
tag : 11
235
293
} ,
236
- 1 : "infinity_of_string %d" ,
294
+ 1 : "normal_float_of_string %d" ,
237
295
length : 2 ,
238
296
tag : 0
239
297
} ) , i ) ,
240
298
function ( ) {
241
299
return /* Eq */ {
242
300
0 : a ,
243
- 1 : Caml_float . caml_classify_float ( Caml_format . caml_float_of_string ( b ) ) ,
301
+ 1 : Caml_format . caml_float_of_string ( b ) ,
244
302
length : 2 ,
245
303
tag : 0
246
304
} ;
247
305
}
248
306
] ;
249
- } , pairs ) ) , Pervasives . $at ( /* :: */ [
250
- /* tuple */ [
251
- "throw" ,
252
- function ( ) {
253
- return /* ThrowAny */ {
254
- 0 : function ( ) {
255
- return Caml_format . caml_float_of_string ( "" ) ;
256
- } ,
257
- length : 1 ,
258
- tag : 3
259
- } ;
260
- }
261
- ] ,
262
- /* [] */ 0
263
- ] , $$Array . to_list ( $$Array . mapi ( function ( i , param ) {
264
- var b = param [ 1 ] ;
265
- var a = param [ 0 ] ;
266
- return /* tuple */ [
267
- Caml_curry . app1 ( Printf . sprintf ( /* Format */ {
268
- 0 : /* String_literal */ {
269
- 0 : "normal_float_of_string " ,
270
- 1 : /* Int */ {
271
- 0 : /* Int_d */ 0 ,
272
- 1 : /* No_padding */ 0 ,
273
- 2 : /* No_precision */ 0 ,
274
- 3 : /* End_of_format */ 0 ,
275
- length : 4 ,
276
- tag : 4
277
- } ,
278
- length : 2 ,
279
- tag : 11
280
- } ,
281
- 1 : "normal_float_of_string %d" ,
282
- length : 2 ,
283
- tag : 0
284
- } ) , i ) ,
285
- function ( ) {
286
- return /* Eq */ {
287
- 0 : a ,
288
- 1 : Caml_format . caml_float_of_string ( b ) ,
289
- length : 2 ,
290
- tag : 0
291
- } ;
292
- }
293
- ] ;
294
- } , pairs$1 ) ) ) ) ) ) ) ;
307
+ } , pairs$1 ) ) ) ) ) ) ;
308
+
309
+ function ff ( param ) {
310
+ return Caml_format . caml_format_int ( "%32d" , param ) ;
311
+ }
312
+
313
+ Mt . from_pair_suites ( "caml_format_test.ml" , suites ) ;
295
314
296
315
exports . of_string = of_string ;
297
316
exports . from_float_of_string = from_float_of_string ;
298
317
exports . from_of_string = from_of_string ;
299
318
exports . u = u ;
300
319
exports . to_str = to_str ;
301
320
exports . v = v ;
321
+ exports . suites = suites ;
322
+ exports . ff = ff ;
302
323
/* v Not a pure module */
0 commit comments