Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
printing test for spread anywhere feature
Browse files Browse the repository at this point in the history
  • Loading branch information
butterunderflow committed Oct 20, 2022
1 parent b34ec30 commit 3459747
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/printer/expr/expected/list.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ let x = list{}
let x = list{1}
let x = list{1, 2}
let x = list{1, 2, 3}
let x = Belt.List.concatMany([list{1, 2, ...x}, list{3, ...x}])

let x = list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
Expand All @@ -17,3 +18,15 @@ let x = list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
...superLoooooooooooooooooooooooooooooongListHere,
}

let x = Belt.List.concatMany([
list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
...superLoooooooooooooooooooooooooooooongListHere,
},
list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
...superLoooooooooooooooooooooooooooooongListHere,
},
])
11 changes: 11 additions & 0 deletions tests/printer/expr/list.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ let x = list{}
let x = list{1}
let x = list{1, 2}
let x = list{1, 2, 3}
let x = list{1, 2, ...x, 3, ...x}

let x = list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
Expand All @@ -18,3 +19,13 @@ let x = list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
...superLoooooooooooooooooooooooooooooongListHere,
}




let x = list{
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer, ...superLoooooooooooooooooooooooooooooongListHere,
superLoooooooooooooooooooooooooooooongIiiiiiiiiideeeentifieeeeeeeeeeeeeeeeer,
...superLoooooooooooooooooooooooooooooongListHere,
}

0 comments on commit 3459747

Please sign in to comment.