Folkert
3ca24a6476
implement wasm memory traits for 4-tuples
2022-07-22 12:18:31 +02:00
Folkert
7e0e635f60
split out ok and err withDefault tests
2022-07-22 12:17:08 +02:00
Folkert
f1ce8b89a0
List.map: send the alignment of the output list element to zig
2022-07-22 12:16:54 +02:00
Folkert
d82e73fff0
ownership; always tricky
2022-07-22 12:11:32 +02:00
Folkert
5f8d2df0fa
use new OUT_DIR for llvm wasm backend
2022-07-22 12:10:10 +02:00
Folkert
ba7ffab790
make wasm test harness work with by-pointer values being returned
2022-07-22 12:09:20 +02:00
Folkert
291b77c83b
stop escaping roc panic strings in the llvm helpers
2022-07-22 12:06:44 +02:00
Folkert
9f80aa4df7
store string correctly on 32-bit platforms
2022-07-22 12:06:04 +02:00
Folkert
2fe590abf4
store list in a shorter way
2022-07-22 12:05:29 +02:00
Christoph Rüßler
c4f141b735
Use Instant over SystemTime to record timings
...
Closes #3575 .
2022-07-22 10:03:47 +02:00
Ayaz Hafiz
90acbd54ef
Get rid of loop
2022-07-21 18:20:11 -04:00
Ayaz Hafiz
5988257bde
Reflect newtypes in path instructions
2022-07-21 18:17:57 -04:00
Richard Feldman
b7d78d9237
Merge pull request #3598 from rtfeldman/i3558
...
Compile variables bound in multiple patterns of a branch, and detect unbound patterns
2022-07-21 16:45:52 -04:00
Ayaz Hafiz
0004e77940
Remove solve test
2022-07-21 15:09:21 -04:00
Ayaz Hafiz
258727a1e4
Add nested no-payload gen test
2022-07-21 15:08:26 -04:00
Ayaz Hafiz
f3722659fc
Newtype destructures test for record that decay into their only arg
2022-07-21 15:03:18 -04:00
Ayaz Hafiz
929a00e73d
Improve quality of decision tree newtype unwrap gen test
2022-07-21 14:58:42 -04:00
Ayaz Hafiz
1acb7e0748
Don't add path instructions for newtypes that decay into their args
2022-07-21 14:57:17 -04:00
Ayaz Hafiz
961cff94d1
Only permit shadowing past first pattern
2022-07-21 14:35:16 -04:00
Richard Feldman
fac29615c8
Merge pull request #3590 from rtfeldman/update-wording
...
Update wording on a type mismatch
2022-07-21 14:29:23 -04:00
Folkert de Vries
a432874290
Merge pull request #3592 from rtfeldman/main-dot-roc
...
Advise using `roc run` with no arg if running `main.roc`
2022-07-21 18:36:39 +02:00
Ayaz Hafiz
52e15bd344
Reproduce #3560
...
Part of #3560
2022-07-21 12:30:36 -04:00
Ayaz Hafiz
0259c3cf92
s/occurences/occurrences/g
2022-07-21 12:29:09 -04:00
Ayaz Hafiz
4839c1f1ce
Clippy doesn't like stack spills. Sorry clippy!
2022-07-21 12:26:42 -04:00
Ayaz Hafiz
7fbdbca4c6
Add multi-branch bound pattern solve test
2022-07-21 12:22:27 -04:00
Ayaz Hafiz
92e363f4ef
Add non-basis test gen case for compiling branches with unbound patterns
2022-07-21 12:19:46 -04:00
Ayaz Hafiz
78dc82867a
Report errors for identifiers not bound in all patterns of a branch
2022-07-21 12:15:05 -04:00
Ayaz Hafiz
ce8b50caea
Support bound variables in multiple patterns
2022-07-21 11:40:09 -04:00
Ayaz Hafiz
bf8fc0d0de
Permit binding variables multiple itmes in when branches
2022-07-21 11:06:40 -04:00
Richard Feldman
e7a76fba0f
Merge remote-tracking branch 'origin/trunk' into update-wording
2022-07-21 11:01:08 -04:00
Folkert
2e07c3f617
show preceding comment in failed test messages
2022-07-21 10:42:58 -04:00
Folkert
2caf58dfd2
show preceding comment in test panic messages
2022-07-21 10:42:58 -04:00
Folkert
5a93da5a11
some work on expect comment regions
2022-07-21 10:42:57 -04:00
Folkert
7597d11b59
parse the region of the preceding comment for an expect
2022-07-21 10:42:57 -04:00
Richard Feldman
35733d51dc
Tweak expectation panic message wording
2022-07-21 10:42:57 -04:00
Folkert
9d294b459e
thread top-level expect region through
2022-07-21 10:42:57 -04:00
Folkert
7e5476aa58
report panicking tests (not pretty yet)
2022-07-21 10:42:57 -04:00
Richard Feldman
3129225951
Only print an inc_dec warning in debug builds
2022-07-21 10:42:57 -04:00
Folkert
b6f1fd6f40
constrain expects in the right order
2022-07-21 10:42:57 -04:00
Folkert
c2206f3e4d
substitute into expect
2022-07-21 10:42:56 -04:00
Ayaz Hafiz
29b37a10df
Correctly use module name in linked functions
2022-07-21 09:02:04 -04:00
Ayaz Hafiz
7ef03440ef
Fully qualify values exported to host linking
...
Previously we were only handing off exposed values based on their
inner-module ID, but actually the fully-resolved ID is needed, because
it's reasonable that two identical names from different modules are
exposed to the host.
Closes #3483
2022-07-21 09:02:03 -04:00
Folkert de Vries
f9a5113210
Merge pull request #3588 from rtfeldman/roc-list-from-iter-part2
...
RocList::from_iter for zero-size elements & fix over-allocation
2022-07-21 12:06:25 +02:00
Joshua Warner
31455f5fbd
Remove first newline and indent from string
2022-07-20 19:20:48 -07:00
Joshua Warner
61b1ab059a
Add test for removing indents in multiline strings
2022-07-20 19:20:10 -07:00
Richard Feldman
8f7e33f526
Advise running roc run
if given "main.roc"
2022-07-20 17:01:32 -04:00
Richard Feldman
eacc65e07f
Revise message for trying to run non-app modules
2022-07-20 16:58:52 -04:00
Richard Feldman
a0237d6aa3
Revise unexpected pattern report
2022-07-20 10:49:06 -04:00
Richard Feldman
55b86f3fe2
Update a test to use new wording
2022-07-20 10:49:06 -04:00
Richard Feldman
1e856d0766
Update repl tests
2022-07-20 10:49:06 -04:00