Commit graph

52 commits

Author SHA1 Message Date
Richard Feldman
da5d0bd815
Merge pull request #4686 from roc-lang/list-range
Switch to more expressive list.range
2022-12-08 02:51:42 -05:00
Ayaz Hafiz
dd364dbdfa
Add gen test for concat unique lists bug 2022-12-06 12:59:55 -06:00
Brendan Hansknecht
2ff8dad1c9
remove old List.range tests in favor of expect 2022-12-04 20:18:39 -08:00
Ayaz Hafiz
0706615d29
Decision tree compilation of suffixed list patterns 2022-11-01 15:22:31 -05:00
Ayaz Hafiz
b0edcc9af4
Add base gen tests for list matching compilation 2022-11-01 15:22:31 -05:00
Ayaz Hafiz
ec4285c1dd
Work around constraining bug in gen test 2022-10-31 09:37:41 -05:00
Prajwal S N
07224e9086
builtin(list): add List.walkFrom, List.walkFromUntil
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-17 20:51:03 +05:30
Ayaz Hafiz
43086a7e25
Enable remaining gen tests 2022-10-12 16:38:35 -05:00
Ayaz Hafiz
0b02ef2803
Fix gen-tests except those that rely on Bool eq 2022-10-12 16:37:50 -05:00
Prajwal S N
a3e6345257
builtin(list): add List.countIf
Closes #4174

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-13 00:45:13 +05:30
Prajwal S N
cbceeff902
builtin(list): implement List.walkBackwardsUntil
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-08 14:23:06 +05:30
Ayaz
211c297230
Merge pull request #4041 from KilianVounckx/opaque-bool
Opaque bool
2022-09-21 11:15:41 -05:00
kilianv
9717747a54
Update tests
not all tests pass yet. Will look at them with Ayaz.
2022-09-20 14:42:03 -05:00
Ayaz Hafiz
7f54c0fd94
FIx gen-wasm tests 2022-09-20 11:38:23 -05:00
Ayaz Hafiz
f41936d5e5
Unwrap layouts containing void layouts as newtypes
Addresses the attempt to do so in https://github.com/roc-lang/roc/pull/3465

Co-authored-by: Folkert <folkert@folkertdev.nl>
2022-09-19 16:50:49 -05:00
Folkert
fbc5412161
ignore another test 2022-09-09 23:20:11 +02:00
Ayaz Hafiz
d1c21e3fcd
Add polymorphic expression reproduction cases from #1745
These work now that we have ways to compile polymorphic expressions.

Closes #1745
2022-08-19 22:21:50 -05:00
Richard Feldman
97e2900bf5
s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Folkert de Vries
801f692067
Merge pull request #3697 from rtfeldman/test-interfaces
Allow `roc test` on interface modules
2022-08-05 00:01:38 +02:00
Richard Feldman
7518164cac
Move an import to avoid an unused warning 2022-08-04 13:52:36 -04:00
Brian Carroll
82e514678e
wasm: Add a test to ensure list literals have initialized capacity 2022-07-29 15:11:28 +02:00
Folkert
67c736948b
fix wasm test 2022-07-25 19:15:40 +02:00
Richard Feldman
f216224495
Fix off-by-one in List.splitFirst and splitLast 2022-07-25 19:15:38 +02:00
Richard Feldman
7cf5732001
Add List.startsWith and endsWith gen tests 2022-07-25 19:15:38 +02:00
Richard Feldman
bdfcabd803
Add List.findLast gen tests 2022-07-25 19:15:37 +02:00
Richard Feldman
c3cfc0d396
Add List.findLastIndex gen tests 2022-07-25 19:15:37 +02:00
Richard Feldman
5520a82bfe
Re-enable and expand list_find_empty_layout 2022-07-25 19:15:35 +02:00
Richard Feldman
f3b8025d8d
Rename List.find and findIndex to include 'First' 2022-07-25 19:15:32 +02:00
Brendan Hansknecht
35a452a69b
setup partially functional array loading 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
8b672a3fcd
enable empty list test and fix list init 2022-07-23 07:52:37 -07:00
Ayaz Hafiz
2cdb951752
Compile higher-order low-level calls that take functions with no closure args
Closes #3571
2022-07-19 15:50:36 -04:00
Ayaz Hafiz
6802c3e2b1
Turn on tests that now work 2022-07-18 11:29:27 -04:00
Richard Feldman
b9bded716c
Fix return type in test result 2022-07-18 11:18:30 -04:00
Richard Feldman
f2175f31be
Add List.mapTry tests 2022-07-17 21:53:01 -04:00
Ayaz Hafiz
25ba744cdd
Unignore most list gen tests 2022-07-10 13:44:35 -04:00
Folkert
56c9787e8f
List.appendUnsafe and List.reserve 2022-07-07 22:40:28 +02:00
Brian Carroll
b1ea641cfb
wasm: enable more tests 2022-07-07 00:34:42 +01:00
Brian Carroll
c9a1600751
wasm: Fix List.map where the mapper has zero-size arguments 2022-07-07 00:05:56 +01:00
Brian Carroll
617e18af98
wasm: enable remaining List tests, except 2 panics 2022-07-06 22:01:02 +01:00
Brian Carroll
f132350ef3
wasm: implement List.sortWith 2022-07-06 22:01:01 +01:00
Brian Carroll
86cb50ed09
test_gen: fix some list tests for 32-bit targets 2022-07-06 21:59:40 +01:00
Brian Carroll
e5e56a7795
wasm: Implement List.prepend 2022-07-06 21:59:37 +01:00
Ayaz Hafiz
20a9a9765a
Disable wasm test for now 2022-07-06 12:49:03 -04:00
ayazhafiz
efbd1bf4c7
Add unbound runtime error function var gen test 2022-07-06 12:49:02 -04:00
ayazhafiz
937b73b797
Compile lambdas that have an empty lambda set
Closes #3224

This should also fix a number of other issues often observed when a
lambda is never actually called, but we fail to codegen because it has
an empty lambda set.
2022-07-06 12:49:01 -04:00
Brian Carroll
62e93dd921
wasm: enable test for List.mapWithIndex 2022-07-04 15:14:52 +01:00
Folkert de Vries
2a82d24847
Merge pull request #3369 from rtfeldman/pure-roc-list-walk
List.walk and friends in pure Roc
2022-07-03 02:32:43 +02:00
Folkert
00397db8b6
implement List.dropAt for the wasm backend 2022-07-02 22:20:34 +02:00
Brian Carroll
219e6d11cf
Merge branch 'trunk' of github.com:rtfeldman/roc into pure-roc-list-walk 2022-07-02 18:08:43 +01:00
Anton-4
b74fc3554b
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder 2022-07-02 12:35:19 +02:00