on master help sign in
Update tests for Native.Utils changes
commit9b7c55bdab88deaf1988e189dda7738234198baf authorEvan Czaplicki <info@elm-lang.org> dateMon 5 Oct 2015, 20:25 (11 years ago) parent3df5323
20 files changed+26−6
tests/test-files/good-expected-js/AliasSubstitution.elm.js+1 tests/test-files/good-expected-js/CaseExpression3.elm.js+1 tests/test-files/good-expected-js/Lists/EmptyList.elm.js+2−1 tests/test-files/good-expected-js/Lists/ListRange.elm.js+2−1 tests/test-files/good-expected-js/Lists/NonEmptyList.elm.js+2−1 tests/test-files/good-expected-js/NoExpressions.elm.js+1 tests/test-files/good-expected-js/Otherwise.elm.js+1 tests/test-files/good-expected-js/Ports.elm.js+2−1 tests/test-files/good-expected-js/PortsWithTypeAliases.elm.js+1 tests/test-files/good-expected-js/QuotesAndComments.elm.js+3−2 tests/test-files/good-expected-js/Soundness/Apply.elm.js+1 tests/test-files/good-expected-js/Soundness/ApplyAnnotated.elm.js+1 tests/test-files/good-expected-js/Soundness/Id.elm.js+1 tests/test-files/good-expected-js/Soundness/IdAnnotated.elm.js+1 tests/test-files/good-expected-js/Soundness/TrickyId.elm.js+1 tests/test-files/good-expected-js/Soundness/TrickyIdAnnotated.elm.js+1 tests/test-files/good-expected-js/Strings/Multiline.elm.js+1 tests/test-files/good-expected-js/Strings/MultilineNormal.elm.js+1 tests/test-files/good-expected-js/TailRecursive.elm.js+1 tests/test-files/good-expected-js/Unify/NonHomogeneousRecords.elm.js+1
tests/test-files/good-expected-js/AliasSubstitution.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var extractVec = function (v) { return {x: v.x,y: v.y};};
89 return _elm.Main.values = {_op: _op,extractVec: extractVec};
tests/test-files/good-expected-js/CaseExpression3.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var Cons = F2(function (a,b) {
89 return {ctor: "Cons",_0: a,_1: b};
tests/test-files/good-expected-js/Lists/EmptyList.elm.js+2−1
@@ -3,7 +3,8 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
7− var emptyList = _utils.list([]);
8+ var emptyList = _U.list([]);
89 return _elm.Main.values = {_op: _op,emptyList: emptyList};
910};
tests/test-files/good-expected-js/Lists/ListRange.elm.js+2−1
@@ -3,7 +3,8 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
7− var listRange = _utils.range(2,10);
8+ var listRange = _U.range(2,10);
89 return _elm.Main.values = {_op: _op,listRange: listRange};
910};
tests/test-files/good-expected-js/Lists/NonEmptyList.elm.js+2−1
@@ -3,7 +3,8 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
7− var nonEmptyList = _utils.list([1,4,5]);
8+ var nonEmptyList = _U.list([1,4,5]);
89 return _elm.Main.values = {_op: _op,nonEmptyList: nonEmptyList};
910};
tests/test-files/good-expected-js/NoExpressions.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 return _elm.Main.values = {_op: _op};
89};
tests/test-files/good-expected-js/Otherwise.elm.js+1
@@ -3,6 +3,7 @@ Elm.Otherwise.make = function (_elm) {
33 "use strict";
44 _elm.Otherwise = _elm.Otherwise || {};
55 if (_elm.Otherwise.values) return _elm.Otherwise.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var boo = false ? "Yay" : "Boo";
89 var otherwise = 3;
tests/test-files/good-expected-js/Ports.elm.js+2−1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var students = Elm.Native.Port.make(_elm).outbound("students",
89 function (v) {
@@ -10,7 +11,7 @@ Elm.Main.make = function (_elm) {
1011 return {name: v.name,age: v.age};
1112 });
1213 },
13− _utils.list([{name: "Tom",age: 42}]));
14+ _U.list([{name: "Tom",age: 42}]));
1415 var time = Elm.Native.Port.make(_elm).outbound("time",
1516 function (v) {
1617 return v;
tests/test-files/good-expected-js/PortsWithTypeAliases.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var pairs = Elm.Native.Port.make(_elm).inbound("pairs",
89 "Main.Point String String",
tests/test-files/good-expected-js/QuotesAndComments.elm.js+3−2
@@ -3,10 +3,11 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var commentStart = "{-";
8− var singleQuote = _utils.chr("\'");
9− var doubleQuote = _utils.chr("\"");
9+ var singleQuote = _U.chr("\'");
10+ var doubleQuote = _U.chr("\"");
1011 var variablesWithPrimes = function (x) {
1112 var x$ = x;
1213 return x$;
tests/test-files/good-expected-js/Soundness/Apply.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var apply = function (f) {
89 var g = function (x) { return f(x);};
tests/test-files/good-expected-js/Soundness/ApplyAnnotated.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var apply = function (f) {
89 var g = function (x) { return f(x);};
tests/test-files/good-expected-js/Soundness/Id.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var myId = function () {
89 var id = function (x) { return x;};
tests/test-files/good-expected-js/Soundness/IdAnnotated.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var myId = function () {
89 var id = function (x) { return x;};
tests/test-files/good-expected-js/Soundness/TrickyId.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var myId = function (x) { var y = x;return y;};
89 return _elm.Main.values = {_op: _op,myId: myId};
tests/test-files/good-expected-js/Soundness/TrickyIdAnnotated.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var myId = function (x) { var y = x;return y;};
89 return _elm.Main.values = {_op: _op,myId: myId};
tests/test-files/good-expected-js/Strings/Multiline.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var s = "\nhere\'s a quote: \"\n\n";
89 return _elm.Main.values = {_op: _op,s: s};
tests/test-files/good-expected-js/Strings/MultilineNormal.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var s = "\nhere\'s a quote: \"\n\n";
89 return _elm.Main.values = {_op: _op,s: s};
tests/test-files/good-expected-js/TailRecursive.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var any = F2(function (f,l) {
89 any: while (true) {
tests/test-files/good-expected-js/Unify/NonHomogeneousRecords.elm.js+1
@@ -3,6 +3,7 @@ Elm.Main.make = function (_elm) {
33 "use strict";
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
6+ var _U = Elm.Native.Utils.make(_elm);
67 var _op = {};
78 var f = function (t) { var y = t.y;var x = t.x;return t;};
89 var Thing = F2(function (a,b) { return {x: a,y: b};});