Skip to content

Commit

Permalink
Tests snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
w8r committed Jul 5, 2023
1 parent 06f3ceb commit 333003f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions test/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ function inlined() {
_d12[0] = _a10[0] * _b11[0];
_d12[1] = _a10[1] * _b11[1];
}
for (let i = 0; i < 100; i++) {
const _a13 = foo2;
const _b14 = bar2;
const _d15 = baz2;
_d15[0] = _a13[0] * _b14[0];
_d15[1] = _a13[1] * _b14[1];
const _a16 = baz2;
const _b17 = bar2;
_a16[0] = _a16[0] + _b17[0];
_a16[1] = _a16[1] + _b17[1];
}
return foo2;
}
function notInlined() {
Expand All @@ -60,6 +71,10 @@ function notInlined() {
add2(foo2, baz2);
crossProduct2(foo2, bar2, baz2);
}
for (let i = 0; i < 100; i++) {
crossProduct2(foo2, bar2, baz2);
add2(baz2, bar2);
}
return foo2;
}
export {
Expand Down Expand Up @@ -115,6 +130,17 @@ function inlined() {
_d12[0] = _a10[0] * _b11[0];
_d12[1] = _a10[1] * _b11[1];
}
for (var i = 0; i < 100; i++) {
const _a13 = foo;
const _b14 = bar;
const _d15 = baz;
_d15[0] = _a13[0] * _b14[0];
_d15[1] = _a13[1] * _b14[1];
const _a16 = baz;
const _b17 = bar;
_a16[0] = _a16[0] + _b17[0];
_a16[1] = _a16[1] + _b17[1];
}
return foo;
}
function notInlined() {
Expand All @@ -127,6 +153,10 @@ function notInlined() {
add2(foo, baz);
crossProduct2(foo, bar);
}
for (var i = 0; i < 100; i++) {
crossProduct2(foo, bar);
add2(baz, bar);
}
return foo;
}
Expand Down Expand Up @@ -174,6 +204,17 @@ function inlined() {
_d12[0] = _a10[0] * _b11[0];
_d12[1] = _a10[1] * _b11[1];
}
for (let i = 0; i < 100; i++) {
const _a13 = foo2;
const _b14 = bar2;
const _d15 = baz2;
_d15[0] = _a13[0] * _b14[0];
_d15[1] = _a13[1] * _b14[1];
const _a16 = baz2;
const _b17 = bar2;
_a16[0] = _a16[0] + _b17[0];
_a16[1] = _a16[1] + _b17[1];
}
return foo2;
}
function notInlined() {
Expand All @@ -186,6 +227,10 @@ function notInlined() {
add2(foo2, baz2);
crossProduct2(foo2, bar2);
}
for (let i = 0; i < 100; i++) {
crossProduct2(foo2, bar2);
add2(baz2, bar2);
}
return foo2;
}
export {
Expand Down

0 comments on commit 333003f

Please sign in to comment.