Skip to content

Commit

Permalink
Update tests: lists are now expanded to objects directly
Browse files Browse the repository at this point in the history
  • Loading branch information
evancz committed Dec 7, 2016
1 parent 239af83 commit b99ded4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/test-files/good-expected-js/Lists/EmptyList.elm.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
var _elm_lang$core$Main$emptyList = _elm_lang$core$Native_List.fromArray(
[]);
var _elm_lang$core$Main$emptyList = {ctor: '[]'};
15 changes: 13 additions & 2 deletions tests/test-files/good-expected-js/Lists/NonEmptyList.elm.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
var _elm_lang$core$Main$nonEmptyList = _elm_lang$core$Native_List.fromArray(
[1, 4, 5]);
var _elm_lang$core$Main$nonEmptyList = {
ctor: '::',
_0: 1,
_1: {
ctor: '::',
_0: 4,
_1: {
ctor: '::',
_0: 5,
_1: {ctor: '[]'}
}
}
};

0 comments on commit b99ded4

Please sign in to comment.