-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hongbo Zhang
committed
Jun 21, 2016
1 parent
0459c2b
commit e953aa9
Showing
4 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
let suites : Mt.pair_suites ref = ref [] | ||
let test_id = ref 0 | ||
let eq loc x y = | ||
incr test_id ; | ||
suites := | ||
(loc ^" id " ^ (string_of_int !test_id), (fun _ -> Mt.Eq(x,y))) :: !suites | ||
|
||
|
||
|
||
let uu = { | ||
_'x_ = 3 | ||
} [@bs.obj] | ||
|
||
|
||
let hh = uu##_'x_ | ||
|
||
let () = eq __LOC__ hh 3 | ||
|
||
let () = Mt.from_pair_suites __FILE__ !suites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,5 +332,5 @@ noassert | |
test_unsafe_cmp | ||
|
||
gpr_441 | ||
|
||
gpr_459 | ||
promise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// GENERATED CODE BY BUCKLESCRIPT VERSION 0.5.5 , PLEASE EDIT WITH CARE | ||
'use strict'; | ||
|
||
var Mt = require("./mt"); | ||
var Block = require("../block"); | ||
|
||
var suites = [/* [] */0]; | ||
|
||
var test_id = [0]; | ||
|
||
function eq(loc, x, y) { | ||
test_id[0] = test_id[0] + 1 | 0; | ||
suites[0] = /* :: */[ | ||
/* tuple */[ | ||
loc + (" id " + test_id[0]), | ||
function () { | ||
return /* Eq */Block.__(0, [ | ||
x, | ||
y | ||
]); | ||
} | ||
], | ||
suites[0] | ||
]; | ||
return /* () */0; | ||
} | ||
|
||
var uu = { | ||
"'x": 3 | ||
}; | ||
|
||
var hh = uu["'x"]; | ||
|
||
eq('File "gpr_459.ml", line 17, characters 12-19', hh, 3); | ||
|
||
Mt.from_pair_suites("gpr_459.ml", suites[0]); | ||
|
||
exports.suites = suites; | ||
exports.test_id = test_id; | ||
exports.eq = eq; | ||
exports.uu = uu; | ||
exports.hh = hh; | ||
/* uu Not a pure module */ |