Skip to content

Commit

Permalink
snapshot runtime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jan 14, 2025
1 parent bbbc80e commit ad0932d
Show file tree
Hide file tree
Showing 69 changed files with 49,630 additions and 49,630 deletions.
172 changes: 86 additions & 86 deletions jscomp/test/dist-es6/jscomp/test/mt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,45 +52,45 @@ function close_enough(thresholdOpt, a, b) {
function handleCode(spec) {
switch (spec.TAG) {
case /* Eq */ 0 :
Assert.deepEqual(spec._0, spec._1);
return;
Assert.deepEqual(spec._0, spec._1);
return;
case /* Neq */ 1 :
Assert.notDeepEqual(spec._0, spec._1);
return;
Assert.notDeepEqual(spec._0, spec._1);
return;
case /* StrictEq */ 2 :
Assert.strictEqual(spec._0, spec._1);
return;
Assert.strictEqual(spec._0, spec._1);
return;
case /* StrictNeq */ 3 :
Assert.notStrictEqual(spec._0, spec._1);
return;
Assert.notStrictEqual(spec._0, spec._1);
return;
case /* Ok */ 4 :
Assert.ok(spec._0);
return;
Assert.ok(spec._0);
return;
case /* Approx */ 5 :
const b = spec._1;
const a = spec._0;
if (!close_enough(undefined, a, b)) {
Assert.deepEqual(a, b);
return;
} else {
return;
}
const b = spec._1;
const a = spec._0;
if (!close_enough(undefined, a, b)) {
Assert.deepEqual(a, b);
return;
} else {
return;
}
case /* ApproxThreshold */ 6 :
const b$1 = spec._2;
const a$1 = spec._1;
if (!close_enough(spec._0, a$1, b$1)) {
Assert.deepEqual(a$1, b$1);
return;
} else {
return;
}
case /* ThrowAny */ 7 :
Assert.throws(spec._0);
const b$1 = spec._2;
const a$1 = spec._1;
if (!close_enough(spec._0, a$1, b$1)) {
Assert.deepEqual(a$1, b$1);
return;
} else {
return;
}
case /* ThrowAny */ 7 :
Assert.throws(spec._0);
return;
case /* Fail */ 8 :
return assert_fail("failed");
return assert_fail("failed");
case /* FailWith */ 9 :
return assert_fail(spec._0);
return assert_fail(spec._0);

}
}
Expand Down Expand Up @@ -118,71 +118,71 @@ function from_pair_suites(name, suites) {
const _fn = Curry._1(param[1], undefined);
switch (_fn.TAG) {
case /* Eq */ 0 :
console.log([
name,
_fn._0,
"eq?",
_fn._1
]);
return;
console.log([
name,
_fn._0,
"eq?",
_fn._1
]);
return;
case /* Neq */ 1 :
console.log([
name,
_fn._0,
"neq?",
_fn._1
]);
return;
console.log([
name,
_fn._0,
"neq?",
_fn._1
]);
return;
case /* StrictEq */ 2 :
console.log([
name,
_fn._0,
"strict_eq?",
_fn._1
]);
return;
console.log([
name,
_fn._0,
"strict_eq?",
_fn._1
]);
return;
case /* StrictNeq */ 3 :
console.log([
name,
_fn._0,
"strict_neq?",
_fn._1
]);
return;
console.log([
name,
_fn._0,
"strict_neq?",
_fn._1
]);
return;
case /* Ok */ 4 :
console.log([
name,
_fn._0,
"ok?"
]);
return;
console.log([
name,
_fn._0,
"ok?"
]);
return;
case /* Approx */ 5 :
console.log([
name,
_fn._0,
"~",
_fn._1
]);
return;
console.log([
name,
_fn._0,
"~",
_fn._1
]);
return;
case /* ApproxThreshold */ 6 :
console.log([
name,
_fn._1,
"~",
_fn._2,
" (",
_fn._0,
")"
]);
return;
console.log([
name,
_fn._1,
"~",
_fn._2,
" (",
_fn._0,
")"
]);
return;
case /* ThrowAny */ 7 :
return;
return;
case /* Fail */ 8 :
console.log("failed");
return;
console.log("failed");
return;
case /* FailWith */ 9 :
console.log("failed: " + _fn._0);
return;
console.log("failed: " + _fn._0);
return;

}
}), suites);
Expand Down
68 changes: 34 additions & 34 deletions jscomp/test/dist/jscomp/test/adt_optimize_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad0932d

Please sign in to comment.