Commit graph

569 commits

Author SHA1 Message Date
Brian Carroll
456d8ff9cb Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity 2022-03-11 19:28:13 +00:00
Tom Dohrmann
17398e4f45 fix listSublist bitcode 2022-03-11 11:32:20 +01:00
Brian Carroll
4878c701ae Fix Zig builtins for 32-bit targets 2022-03-10 23:26:58 +00:00
Folkert
19c46916d9
fix zig string tests
mostly, strings that were small before are now not, so I had to increase the string lengths
2022-03-09 19:25:51 +01:00
Folkert
82dddf4c3a
add capacity field to make tests compile 2022-03-09 19:21:11 +01:00
Folkert
07063a8e18
Merge remote-tracking branch 'origin/trunk' into list-str-capacity 2022-03-09 14:36:34 +01:00
Derek Gustafson
b6ad04b0f1
Fix zig fmt error. 2022-03-03 11:14:58 -05:00
Derek Gustafson
6feac21b9b
Remove using a string as an intermediate form in Dec.fromF64. 2022-03-03 11:05:41 -05:00
Brendan Hansknecht
2e70bb8458 remove list set low level 2022-02-27 15:07:09 -08:00
Brendan Hansknecht
aff962809b call ListReplace and generate struct afterwards 2022-02-24 22:33:36 -08:00
Brendan Hansknecht
dc59ba97c2 change listReplace zig builtin to use RocList 2022-02-24 22:02:23 -08:00
Brendan Hansknecht
27b47713aa Add some comments and TODOs 2022-02-24 20:40:45 -08:00
Brendan Hansknecht
ba2e8cd32b Add base piping for list.Replace 2022-02-24 17:58:56 -08:00
Folkert
177529bfb6
all string tests passing 2022-02-20 13:04:12 +01:00
Folkert
1c0d092c48
fix str_to_utf8 2022-02-20 01:10:09 +01:00
Folkert
2c4d0e71a6
fix string repeat tests 2022-02-20 00:47:07 +01:00
Folkert
dea6cfbc8f
various fixes 2022-02-20 00:20:50 +01:00
ayazhafiz
13067f2908 Implement Num.toNNNChecked
Closes #2411
2022-02-19 16:20:21 -05:00
Folkert
3d7254726d
WIP 2022-02-18 23:33:24 +01:00
ayazhafiz
886e4e07f6 Update alias analysis, implementation for List.mapWithIndex 2022-02-13 22:50:27 -05:00
Richard Feldman
5d60677b5b
Fix defensive cloning 2022-02-02 23:08:12 -05:00
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
Jan Van Bruggen
1e9d2d1239 Remove accidental trailing spaces 2022-01-18 22:25:46 -07: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
Jan Van Bruggen
96724e73aa Add empty-delimiter handling for Str.split 2021-12-18 00:53:17 -07:00
Brian Carroll
77d73f35eb Merge branch 'trunk' of github.com:rtfeldman/roc into faster-str-eq 2021-12-17 13:47:25 +00:00
Brian Carroll
a481e34f31 Zig builtins: set small string flag on empty string 2021-12-16 19:04:36 +00:00
Brian Carroll
ad8fa483d2 Make Str equality faster 2021-12-16 11:45:54 +00:00
Brian Carroll
3c74acafa4 More precise alignCast (allow for 32-bit targets) 2021-12-16 11:45:54 +00:00
Brian Carroll
457041a314 Slightly optimize Str.isEmpty 2021-12-16 11:45:54 +00:00
Brian Carroll
bbf04b8752 Add more Zig tests for Str.eq 2021-12-15 11:27:13 +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
Richard Feldman
1ce648ac27
Merge pull request #2116 from rtfeldman/str_to_num
Str.toNum
2021-12-09 09:48:38 -05:00
Anton-4
e50fb25b38 forgot about Aarch64 2021-12-03 20:03:45 +01:00
Anton-4
4427779c7a set zig builtins target for compatibility 2021-12-03 19:57:19 +01:00