Commit graph

678 commits

Author SHA1 Message Date
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
Richard Feldman
304c2c0bb0
Fix test_gen::helpers::dev 2022-08-04 13:52:35 -04:00
Folkert de Vries
9f2ddc61d8
Merge pull request #3699 from rtfeldman/wasm-fix-uninit-capacity
Wasm: fix uninitialised capacity in List literals
2022-08-04 15:24:55 +02:00
Brian Carroll
f526005249
test_gen: make default option more obvious on wasm debug page 2022-08-04 12:15:31 +01:00
Brian Carroll
acc83bde7c
test_gen: Fix an inaccurate test return value 2022-08-04 10:00:21 +01:00
Brian Carroll
be6408227a
test_gen: change some i64's to usize's 2022-08-04 09:29:30 +01:00
Richard Feldman
7f65298cf5
Fix a warning when testing with --release 2022-08-03 22:59:50 -04:00
Richard Feldman
d9992e26b1
Fix wasm test helper 2022-08-03 22:59:36 -04:00
Richard Feldman
9f221d7fab
Disable roc_std default features in gen_wasm and test_gen 2022-08-03 22:40:58 -04:00
Ayaz Hafiz
d481c9d22e
Disable test on wasm3 2022-08-03 21:17:32 -05:00
Richard Feldman
e685eba42b
fix tests 2022-08-03 19:50:17 -04:00
Ayaz Hafiz
7ee298324e
Link relevant issue of ignored test 2022-08-03 16:27:47 -05:00
Ayaz Hafiz
24810ca778
Add a couple tests that currently hit a compiler panic 2022-08-03 16:19:50 -05:00
Ayaz Hafiz
1273a6ab0b
Check in a couple of list deriving tests! 2022-08-03 16:11:45 -05:00
Folkert de Vries
66d361d262 clippy 2022-08-03 22:35:22 +02:00
Folkert de Vries
8f67129eae use platform-independent tempdir 2022-08-03 21:58:02 +02:00
Folkert de Vries
a345649856 make test_gen build windows-proof 2022-08-03 21:46:04 +02:00
Folkert de Vries
fe707a9d6c Revert "don't use default flags when using roc_std just for its types"
This reverts commit 092a119eb7.
2022-08-03 21:18:56 +02:00
Folkert de Vries
092a119eb7 don't use default flags when using roc_std just for its types 2022-08-03 20:24:18 +02:00
Ayaz Hafiz
19a0302b25
Turn on wasm tests that work 2022-08-03 11:49:43 -05:00
Ayaz Hafiz
5ba7b81d57
Disable wasm gen for now 2022-08-03 11:49:11 -05:00
Ayaz Hafiz
7bcfb2cd38
Gen tests for deriving decoding immediates 2022-08-03 10:17:03 -05:00
Folkert de Vries
f233fae480
Merge pull request #3690 from rtfeldman/3318-is-multiple-of-unsigned
Fix `Num.isMultipleOf` for unsigned ints
2022-08-03 13:25:56 +02:00
Anton-4
6a15a7b41b
changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
Christoph Rüßler
38f7fc7136
Add support for f32 to NumAdd 2022-08-02 21:57:08 +02:00
Christoph Rüßler
8cd63290f9
Add support for more integer types to NumAdd 2022-08-02 21:57:07 +02:00
Ayaz
fa14146054
Merge pull request #3531 from rtfeldman/decode
Very basic Decode.roc in the standard library
2022-08-02 14:26:28 -05:00
Folkert de Vries
86a1a0f401
Merge pull request #3643 from rtfeldman/disjoint-able-variable-specialization
Disjoint able variable specialization algorithm
2022-08-02 20:31:47 +02:00
raleng
06f1bead96
Enable gen_llvm is_multiple_of_unsigned test 2022-08-02 16:00:29 +02:00
Anton-4
d6b62add36
fixed BUILTINS_HOST_OBJ_PATH not found 2022-08-01 18:54:16 +02:00
Ayaz Hafiz
c9e7d4d92b
Add a list decoding test 2022-08-01 11:08:09 -05:00
Anton-4
0b5b3a8652
Merge branch 'trunk' of github.com:rtfeldman/roc into build-nix 2022-08-01 16:51:07 +02:00
Anton-4
43f9e2a7c3
fixes to make default.nix work 2022-08-01 16:50:38 +02:00
Ayaz Hafiz
b516bf0da8
Add basis decoder test, using the standard library! 2022-08-01 09:06:30 -05:00
Ayaz Hafiz
f275a943d0
Disable test on wasm3 for now 2022-08-01 08:06:44 -05:00
Ayaz Hafiz
95a439d402
Turn on all abilities tests for wasm 2022-08-01 08:06:39 -05:00
Ayaz
f72d29d6c5
Merge pull request #3660 from rtfeldman/i3653
Unify material recursion variables behind aliases and opaques
2022-07-29 18:35:44 -05:00
Brian Carroll
7f95483ea8
test_gen: fix inaccurate return type in a test causing wasm failure 2022-07-29 22:06:55 +02:00
Ayaz
fffe9ca8ee
Merge pull request #3659 from rtfeldman/when-on-128bit-numbers
when on 128-bit numbers
2022-07-29 14:54:16 -05:00
Ayaz
ff0edc72c3
Merge pull request #3657 from rtfeldman/when-on-strings
implement when on multiple string patterns
2022-07-29 14:53:35 -05:00
Ayaz Hafiz
fe864a445d
Add a test for big encoders enabled by disjoint specialization variables 2022-07-29 14:18:47 -04:00
Brian Carroll
ef1e86cca6
wasm: Enable some tests that are working now 2022-07-29 19:26:20 +02:00
Ayaz Hafiz
c397f7a0d9
Turn off failing test for now 2022-07-29 11:09:10 -04:00
Ayaz Hafiz
1460f60ab1
Unify material recursion variables behind aliases and opaques
Even if there are no changes to alias arguments, and no new variables were
introduced, we may still need to unify the "actual types" of the alias or opaque!

The unification is not necessary from a types perspective (and in fact, we may want
to disable it for `roc check` later on), but it is necessary for the monomorphizer,
which expects identical types to be reflected in the same variable.

As a concrete example, consider the unification of two opaques

  P := [Zero, Succ P]

  (@P (Succ n)) ~ (@P (Succ o))

`P` has no arguments, and unification of the surface of `P` introduces nothing new.
But if we do not unify the types of `n` and `o`, which are recursion variables, they
will remain disjoint! Currently, the implication of this is that they will be seen
to have separate recursive memory layouts in the monomorphizer - which is no good
for our compilation model.

Closes #3653
2022-07-29 11:03:47 -04:00
Brian Carroll
ef47ced57a
test_gen: Update FromWasm32Memory to correctly decode capacity for List and Str 2022-07-29 15:19:02 +02:00
Brian Carroll
82e514678e
wasm: Add a test to ensure list literals have initialized capacity 2022-07-29 15:11:28 +02:00
Folkert
d90fbbb032
remove duplicate test 2022-07-29 14:42:26 +02:00
Folkert
47bbef30e8
when on 128-bit numbers 2022-07-29 14:09:50 +02:00
Brian Carroll
0041d4f3bc
wasm: Fix shiftRightBy for U8 and U16 2022-07-29 14:05:39 +02:00