Commit graph

44 commits

Author SHA1 Message Date
Ayaz Hafiz
e31a16f650
Properly wrap with newtype-by-void layouts in repl
Closes #4208
2022-10-05 11:17:57 -05:00
Ayaz Hafiz
b1784768fa
Fix interface name 2022-10-02 23:33:20 -05:00
Ayaz Hafiz
18fe355863
Update repl expect 2022-09-20 15:26:55 -05:00
Folkert
bdec61d5bb
fix bug in expect serialization of lambda sets 2022-09-16 22:19:55 +02:00
Ayaz Hafiz
c4a3a8bd31
Copy list values from the correct offset when reporting expects
Co-authored-by: Folkert de Vries <folkert@folkertdev.nl>
2022-09-14 14:28:56 -05:00
Ayaz Hafiz
c5466810a4
Add LayoutInterner to LayoutCache
Adds a thread-local interner of layouts to LayoutCache, and updates all
references appropriately.

This is a bit suboptimal for single-threaded workloads that will look at
creating layout caches again, like the REPL, but I think that's okay for
now - since the global interner will be uncontested for those workloads, it
should still be plenty fast to access the interner, even behind a lock.
2022-08-31 14:33:51 -05:00
Richard Feldman
3ca9202e3b
Merge pull request #3834 from roc-lang/rust-1.63-clippy
rust 1.63 clippy
2022-08-27 21:15:36 -04:00
Brian Carroll
601090b0bb
Get rid of Rust warnings in repl_expect on Windows 2022-08-26 08:44:32 +01:00
Brian Carroll
7caca140b0
Further disable roc_repl_expect on Windows 2022-08-26 08:44:31 +01:00
Folkert
f3f6f58d09
clippy fixes 2022-08-21 16:43:57 +02:00
Folkert
f8fba56b0a
improve how we deal with the expect memory buffer 2022-08-13 00:01:05 +02:00
Folkert de Vries
c7f9a39625
Merge pull request #3702 from rtfeldman/test-str-builtins
`roc test` on `Str` builtins
2022-08-07 13:14:17 +02:00
Folkert
45c15bf1f1
expect tests need to run with test execution mode 2022-08-06 23:00:58 +02:00
Folkert
a5293e2a60
and add non-nullable unwrapped 2022-08-06 18:27:04 +02:00
Folkert
be4e98e076
add recursive unions 2022-08-06 17:40:12 +02:00
Folkert
546b702740
nullable wrapped tags 2022-08-06 14:40:00 +02:00
Richard Feldman
e685eba42b
fix tests 2022-08-03 19:50:17 -04:00
Folkert
2514e7d845
implement non-recursive tags 2022-07-28 22:02:21 +02:00
Folkert
e61f025fef
implement expect box reporting 2022-07-28 17:01:33 +02:00
Folkert
1bfac155ca
implement expect struct reporting 2022-07-28 16:47:02 +02:00
Folkert
8e5b0daa94
figured out how to serialize nested structures 2022-07-27 23:52:11 +02:00
Folkert
283539d61a
stop updating offset in repl_expect inner functions 2022-07-27 22:42:58 +02:00
Folkert
71e9835504
add another test 2022-07-27 22:38:33 +02:00
Folkert
da1bcfc8b0
get rid of bytes_read 2022-07-27 21:34:37 +02:00
Folkert
631c642950
store the start of the value for each variable in a table 2022-07-27 21:32:49 +02:00
Folkert
9920184232
clippy 2022-07-27 21:03:08 +02:00
Folkert
e67e968ba1
use stack/heap memory instead of mmap for roc test 2022-07-27 17:28:44 +02:00
Folkert
f7452b8889
pass the shared buffer to zig directly 2022-07-27 17:16:12 +02:00
Folkert
b132b1fa89
fix non-recursive tag unions in expects 2022-07-27 14:44:43 +02:00
Folkert
66f9ff1d58
fix bug with dynamic size calls (copy structs now work) 2022-07-27 14:29:44 +02:00
Folkert
e19b272a9e
test expect reporting 2022-07-27 13:51:12 +02:00
Folkert
64c2d8d87e
move expect running logic into repl_expect 2022-07-26 21:15:16 +02:00
Folkert
37786f1a09
refactor repl-expect 2022-07-26 20:41:19 +02:00
Folkert
eb9ebc8c33
fix bug with string offset 2022-07-26 20:29:38 +02:00
Folkert
7634c6f636
remove lifetimes where now possible 2022-07-26 00:08:17 +02:00
Folkert
6d0e751999
fix bug in expect handling on the cli side 2022-07-25 22:37:36 +02:00
Folkert
93005cf2d0
report multiple expect failures 2022-07-24 11:25:02 +02:00
Folkert
02e842cda7
keep track of offset in expect repl 2022-07-23 15:43:22 +02:00
Folkert
954a4fbe32
WIP 2022-07-23 14:25:38 +02:00
Folkert
6c0217c6f6
make the repl app mutable (for expect repl) 2022-07-23 14:03:30 +02:00
Folkert
dfbad3c322
add special repl functions for string and list 2022-07-23 13:39:47 +02:00
Folkert
d4feaf871b
add llvm expect cloning 2022-07-23 00:09:25 +02:00
Ayaz Hafiz
9b7950f765
Wrap opaque types in the repl with the appropriate opaque wrapper
Closes #3504
2022-07-13 17:46:04 -04:00
Folkert
998508521e
add the repl_expect crate 2022-07-06 14:06:12 +02:00