Folkert
53d426300e
add additonal tests
2022-03-26 12:46:31 +01:00
Folkert
6134e57921
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-18 18:13:55 +01:00
ayazhafiz
17029cff7e
Link aliased lambdas to the partial procs of the original symbol
...
This ensures that we use the correct specialized variable at the call
site of a function. In #2725 what happened was that a generalized
function was aliased, causing it to undergo generalization again. Then,
we lost the variable used to specialize at the call site. Instead, just
link to the partial proc being aliased directly.
There is an added benefit here, which is that we can avoid the
possibly-quadratic replacement of symbols in the generated statement.
Closes #2725
2022-03-14 16:42:53 -05:00
ayazhafiz
2d01c21b5c
Codegen tags that are polymorphic because of rigids
...
Closes #2724
2022-03-14 15:25:25 -05:00
ayazhafiz
530fa9943a
Generate unsigned div and modulo correctly
...
Closes #2705
2022-03-13 18:44:38 -05:00
Folkert
e3e9215578
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs
2022-03-12 14:10:43 +01:00
Brendan Hansknecht
bc492fa22b
run cargo fmt
2022-03-11 19:29:34 -08:00
Folkert
e1d5b748b1
fix wasm/dev tests
2022-03-12 00:13:49 +01:00
Folkert
01b810266b
test cleanup
2022-03-11 22:15:36 +01:00
Brian Carroll
456d8ff9cb
Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity
2022-03-11 19:28:13 +00:00
Brian Carroll
ad5da76588
wasm: fix remaining tests for capacity
2022-03-11 19:20:57 +00:00
Brendan Hansknecht
d681062c63
add Num.toNat
2022-03-11 11:17:42 -08:00
Brian Carroll
38b8c45b23
wasm: fix Str decoding in tests
2022-03-11 19:07:18 +00:00
Brian Carroll
a9e0ff6b4b
wasm: update small string tests to expect 12 bytes
2022-03-11 08:34:27 +00:00
Brendan Hansknecht
cdf19e3feb
Merge pull request #2698 from rtfeldman/i/2696
...
Make sure casting to unsigned types performs zero-extension
2022-03-10 20:10:33 -08:00
hafiz
8679904fc3
Disable wasm test for now
2022-03-10 18:19:27 -06:00
ayazhafiz
a90bba3d1d
Make sure casting to unsigned types performs zero-extension
...
Closes #2696
2022-03-10 17:39:37 -06:00
Folkert
e90c12ba1f
Merge remote-tracking branch 'origin/trunk' into box-all-the-things
2022-03-10 18:01:09 +01:00
Folkert
98b2ed5d60
add test
2022-03-09 23:07:24 +01:00
Folkert
07063a8e18
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-09 14:36:34 +01:00
Folkert
6543c9bbc6
Merge remote-tracking branch 'origin/trunk' into box-all-the-things
2022-03-09 00:00:15 +01:00
Folkert
be28ee2a64
add test
2022-03-08 22:21:37 +01:00
Brian Carroll
7e0b439ef5
test_gen: add missing #[test] attribute
2022-03-08 08:57:52 +00:00
Brian Carroll
4d14fbf562
wasm: use a debug-friendly enum for refcount tests
2022-03-08 07:43:01 +00:00
Brian Carroll
eaf76aa879
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-03-07 20:02:44 +00:00
Brian Carroll
92ace8ff67
Merge pull request #2626 from rtfeldman/gen-dev/quicksort2
...
Gen dev - Quicksort
2022-03-07 17:46:46 +00:00
ayazhafiz
3bff99b0a2
Register accessor closures when they are bound
...
Previously we only registered record accessor closures in anonymous
contexts, where we assume they must already be specialized based on the
surrounding contexts. This is not true in general since one might bind
an accessor to a name.
Closes #2567
2022-03-06 10:53:12 -05:00
Brian Carroll
770155312c
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-03-04 21:22:08 +00:00
Brian Carroll
338961d202
wasm: go back to custom bytes->string transformation
...
CStr version is too hard to get working correctly. I get weird test failures
with random characters in the middle of strings.
2022-03-04 19:52:27 +00:00
Brian Carroll
20e46fbda4
wasm: address PR feedback
2022-03-04 19:12:18 +00:00
Brian Carroll
a7899bdded
wasm: enable another roc_panic test
2022-03-02 08:15:36 +00:00
Brian Carroll
561a1d16ff
wasm: add expect_runtime_error_panic test macro
2022-03-02 08:05:48 +00:00
Brian Carroll
896715cd58
wasm: fix Cargo dependency for ARM
2022-03-02 08:02:21 +00:00
Brian Carroll
85ba3154ec
wasm: fix roc_panic message retrieval
2022-03-01 18:47:51 +00:00
Brendan Hansknecht
a5ce124bd3
Merge branch 'list-replace' into gen-dev/quicksort2
2022-02-27 20:42:45 -08:00
Brian Carroll
8d484e8c9e
wasm: tests read panic message from a global pointer
2022-02-28 00:53:01 +00:00
Brendan Hansknecht
457ba524aa
fix tests and alias analysis
2022-02-27 15:20:54 -08:00
Brian Carroll
7ccc5ec768
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-02-27 22:57:23 +00:00
Brendan Hansknecht
d9e9c28889
add error test case
2022-02-27 00:45:51 -08:00
Brendan Hansknecht
b802d681a3
Merge remote-tracking branch 'origin/trunk' into list-replace
2022-02-27 00:28:08 -08:00
Brendan Hansknecht
7a608524ec
Merge remote-tracking branch 'origin/trunk' into gen-dev/quicksort2
2022-02-27 00:26:04 -08:00
Richard Feldman
d3acf34415
Merge pull request #1591 from rtfeldman/single-quote-literal
...
Single Quote literal
2022-02-26 23:27:46 -05:00
Brendan Hansknecht
ffee5ab97a
add some more tests, including failure for new line
2022-02-25 22:05:21 -08:00
Brendan Hansknecht
c025b8806b
disable accidentally enabled test on dev backend
2022-02-25 21:07:20 -08:00
Brendan Hansknecht
39d070e543
flip platform flag to be default
2022-02-25 20:10:36 -08:00
Brendan Hansknecht
c13c8ece1f
pipe target and roc_build features around
2022-02-25 11:37:44 -08:00
Brendan Hansknecht
f59b5cab95
fix undefined symbols in roc_std with platform feature
2022-02-25 11:05:08 -08:00
Brendan Hansknecht
cd0d89fdc9
Merge remote-tracking branch 'origin/trunk' into single-quote-literal
2022-02-25 07:39:58 -08:00
Brendan Hansknecht
7c6c9b52a9
Merge remote-tracking branch 'origin/trunk' into list-replace
2022-02-25 07:35:00 -08:00
Tom Dohrmann
954064fa1e
make more types more explicit
2022-02-25 13:58:07 +01:00