Commit graph

69 commits

Author SHA1 Message Date
Richard Feldman
778d32f6b2
Acknowledge possibility of roc_alloc failing 2022-02-02 19:25:08 -05:00
Richard Feldman
9b05d8dd50
Move expect zig code out of utils 2022-02-02 19:15:47 -05:00
Richard Feldman
06203163eb
Use mutex more in expect failures 2022-02-02 18:59:34 -05:00
Richard Feldman
c21741a7e0
zig fmt 2022-02-01 08:37:51 -05:00
Richard Feldman
a55ff62e6c
Merge remote-tracking branch 'origin/trunk' into expect-dont-panic 2022-01-30 20:22:26 -05:00
Chelsea Troy
4f8d0776b3 We got a test working for panicking with the appropriate number fo failures. Ultimatly we want:
+ An error maessage that says what the failures were
+ Not panicking (so these are effectively error productions)
2022-01-30 18:55:09 -06:00
Chelsea Troy
085c02ffee Infrastructure to test and implement the replacement of an 'expect' failure with an error production
Last command run was 'cargo test expect_fail'
2022-01-16 22:01:22 -06:00
Richard Feldman
74cca25aec Use global mutex over threadlocal 2022-01-02 22:53:48 -05:00
Richard Feldman
ac67eaf837 Use deinitFailures in expectFailure test 2022-01-02 22:43:15 -05:00
Richard Feldman
bfdf0bf916 Use roc_realloc in expect failures 2022-01-02 22:43:15 -05:00
Richard Feldman
afca1b9ee5 Revert "Use std.testing.free over destroy"
This reverts commit 7ba074353028907450c0eaad0da5cc32c4f38df8.
2022-01-02 22:43:15 -05:00
Richard Feldman
8c267f937b Use std.testing.free over destroy 2022-01-02 22:43:15 -05:00
Richard Feldman
e324366ecf zig fmt 2022-01-02 22:43:15 -05:00
Chelsea Troy
bf582b8120 Add C implementations for testing functions in zig 2022-01-02 14:55:56 -06:00
Chelsea Troy
e95c5f9a9d Include a public API for the failure collection 2022-01-02 14:08:25 -06:00
Chelsea Troy
39f6bde62c Install a temporary memory allocation solution to make the test work 2022-01-02 14:03:10 -06:00
Chelsea Troy
a6e2f1152e The tests run, but they don't work 2022-01-02 13:29:08 -06:00
Brian Carroll
3c74acafa4 More precise alignCast (allow for 32-bit targets) 2021-12-16 11:45:54 +00:00
Chelsea Troy
b96ebe0457 Starts memory allocation for our collection of failures for the expect keyword
+ BLOCKED: @lucas how do we initialize an empty slice in Zig?
2021-12-12 19:02:18 -06:00
Brian Carroll
6e5acadfea Create new lowlevels for refcounting 2021-11-30 09:57:00 +00:00
Folkert
7fc79c3d40 fix typo 2021-11-21 19:20:05 +01:00
Kevin Sjöberg
f6d055dc62 Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
Locria Cyber
791c46fe0d Remove deprecated zig features 2021-10-26 20:21:55 -04:00
Folkert
018348bd83 make Str.fromUtf8 in-place 2021-10-03 12:13:17 +02:00
Folkert
cd9b32ba65 fix list decref 2021-09-10 21:53:57 +02:00
Folkert
5e68d31afc expose decref_pointer_check_NULL 2021-09-10 20:42:25 +02:00
Folkert
3adfbf3459 fix bug in realloc on 32-bit platforms 2021-09-04 13:46:30 +02:00
Folkert
cde8f5cbd4 optimize RC 2021-09-02 21:29:24 +02:00
Folkert
4e39543054 simplify/optimize decref logic 2021-09-01 23:07:56 +02:00
Folkert
7aac6b6750 cleanup 2021-09-01 22:52:39 +02:00
Folkert
5cb7dbd3cc use zig's decref instead of an LLVM implementation 2021-09-01 16:58:05 +02:00
Folkert
3ef4a40f45 hopefully get the logic right this time 2021-09-01 15:56:50 +02:00
Folkert
4731cbd391 trying to be even smarter 2021-08-31 22:40:13 +02:00
Folkert
a810c2c27b smarter alignment code 2021-08-31 22:37:32 +02:00
Folkert
fdd34a5d3e zig remove explicit libc dep in 32-bit mode 2021-08-29 00:37:28 +02:00
Folkert
a4475b7544 make TestBase64 compile 2021-08-25 20:47:03 +02:00
Folkert
ca5efdf1d9 fix alignment issue 2021-08-24 20:23:24 +02:00
Folkert
7d874e5c15 fix zig warning 2021-08-23 22:27:00 +02:00
Folkert
9903e14cd3 update zig to compile on nightly 2021-08-23 21:41:13 +02:00
Folkert
a0a0896622 a working prototype 2021-08-15 23:20:05 +02:00
Folkert
d8e38ef2ac proof of concept 2021-08-15 13:21:14 +02:00
Folkert
23ea151d5f make decimal math ops correctly report overflow 2021-07-18 22:04:32 +02:00
rvcas
60f017cbd5 chore: utils ignore unused vars 2021-07-02 18:35:51 -04:00
rvcas
954949fbb0 chore: delete unused function 2021-06-06 00:52:44 -04:00
Folkert de Vries
5724f82667
Merge branch 'trunk' into zig-list-set 2021-05-25 09:05:18 +02:00
Richard Feldman
aa96d2373b Reorder args in decref 2021-05-24 22:06:35 -04:00
Richard Feldman
65542149a3 Fix alloc type sigs in utils.zig 2021-05-24 22:01:14 -04:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Folkert
799e4a3239 use new roc alloc stuff for List.set 2021-05-24 18:27:27 +02:00
Folkert
91b49ecf98 Merge remote-tracking branch 'origin/roc_alloc' into zig-list-set 2021-05-24 18:25:18 +02:00