Commit graph

105 commits

Author SHA1 Message Date
Folkert
d7ed1de15f Merge remote-tracking branch 'origin/trunk' into catch-cleanup 2021-06-01 21:48:06 +02:00
tarjei
bec6e556d5 Merge branch 'trunk' into builtins/list-swap 2021-05-31 19:16:31 +02:00
Folkert
50ea46e73e add test 2021-05-29 23:29:33 +02:00
tarjei
ade591dd10 Fix plumbing 2021-05-29 22:21:25 +02:00
Folkert
3636e18a18 centralize inkwell imports 2021-05-29 21:46:33 +02:00
tarjei
98011f48a8 Add tests
These tests cover, for good measure:

 - swapping an empty list
 - swapping elements outside a list
 - swapping a short list
 - swapping with reversed args
 - swapping the middle of a long list
 - swapping with one index outside the list
 - swapping the same index with itself
2021-05-29 20:58:59 +02:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Folkert
5f408c42b0 enable tag unions as functions in code gen 2021-05-24 16:01:51 +02:00
Folkert
174daeb3b5 fix codegen 2021-05-24 15:28:41 +02:00
Folkert
fbb711b2ca Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel 2021-05-24 15:11:40 +02:00
Richard Feldman
81d758d647 Fix gen_compare tests 2021-05-23 23:46:09 -04:00
Richard Feldman
e3267dbf61 Fix some test module names 2021-05-23 23:46:09 -04:00
Richard Feldman
6c4ba49086 Move add_intrinsics back 2021-05-23 23:46:09 -04:00
Richard Feldman
ebad3597c9 Call add_intrinsics after add_default_roc_externs
This is necessary to prevent defining things twice
2021-05-23 23:46:09 -04:00
Richard Feldman
e6ece40f76 Extract externs helpers into gen 2021-05-23 23:46:09 -04:00
Richard Feldman
017ba59775 Have test_gen provide roc_alloc etc 2021-05-23 23:46:09 -04:00
Richard Feldman
a7518a675a Clean up some clippy warnings 2021-05-23 20:28:23 -04:00
Folkert
9b02165f00 remove unused function 2021-05-22 19:08:25 +02:00
Folkert
6bc72ee804 add extra test for unresolved type variables 2021-05-22 17:20:52 +02:00
Folkert
3b47fbc89a module thunk is function 2021-05-22 14:57:25 +02:00
tarjei
f45d89270b Implement basic List.drop that satisfies tests
Issues with uniqueness and copying which leaks memory obviously needs to be fixed.
2021-05-18 22:59:55 +02:00
Folkert
691fa56d50 make repl evaluate 0-argument thunk 2021-05-16 00:23:04 +02:00
Folkert
558fb3e1bf clippy + top level thunks 2021-05-15 23:19:08 +02:00
Folkert
49521f5279 enable more ignored tests 2021-05-14 15:19:22 +02:00
Folkert
e40db9a207 fix return_wrapped_closure" 2021-05-14 15:16:35 +02:00
Folkert
3c7e849830 get poc-effect working 2021-05-14 15:09:55 +02:00
Folkert
ca78439756 working Set.walk 2021-05-14 12:35:44 +02:00
Folkert
d25b1dc549 fix final list test 2021-05-14 01:02:16 +02:00
Folkert
acfaf96734 lots of progress, many bugs 2021-05-13 23:45:39 +02:00
Folkert
ce195034ee sort of stable 2021-05-13 21:34:22 +02:00
Folkert
2163e01288 lowlevel List.map works 2021-05-13 19:15:17 +02:00
Folkert
f02f655e0b got some lowlevel stuff working 2021-05-13 01:39:06 +02:00
Folkert
e63eea7389 WIP 2021-05-13 00:26:41 +02:00
Folkert
29157e8b45 add test 2021-05-10 21:39:11 +02:00
Folkert
48f392f372 fix bad test examples using unbound type alias variables 2021-05-05 19:54:10 +02:00
Folkert
2ca6f0107a re-enable rose tree test 2021-05-05 15:18:26 +02:00
Folkert
82aa5c766d fix gen_primitives tests 2021-05-03 21:22:21 +02:00
Richard Feldman
83dde26cd0 Fix Str.startsWithCodePoint docs 2021-05-02 22:16:58 -04:00
Folkert
c071cfba13 implement startsWithCodePoint 2021-05-02 19:26:08 +02:00
Folkert
95fbc15373 add test 2021-04-23 11:27:36 +02:00
Folkert
b4f6b1a0e4 Merge remote-tracking branch 'origin/trunk' into inkwell-llvm-11-bump 2021-04-22 12:43:41 +02:00
Folkert
3cc4e5fea6 bump inkwell version 2021-04-22 12:43:26 +02:00
Richard Feldman
0a50b0b488 Change license to UPL-1.0
Closes https://github.com/rtfeldman/roc/issues/1199
2021-04-21 19:18:44 -04:00
Folkert
383f35db5a bump bumpalo 2021-04-18 14:36:47 +02:00
Richard Feldman
792a18816a Update authors in Cargo.toml 2021-04-11 08:11:52 -04:00
Folkert
ea7af0f7e7 don't inline testing function (used in macro) 2021-04-04 21:12:32 +02:00
Folkert
17b5dcb92a add tests 2021-04-03 20:39:25 +02:00
Folkert
61b7be7838 remove pub fn 2021-04-01 21:45:50 +02:00
Folkert
ff3f231155 remove Mode from stdlib 2021-04-01 21:42:38 +02:00