mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Fixes
This commit is contained in:
parent
16a4b78de7
commit
0508a4984a
69 changed files with 760 additions and 624 deletions
8
src/cache/CacheModule.zig
vendored
8
src/cache/CacheModule.zig
vendored
|
|
@ -590,6 +590,10 @@ test "create and restore cache" {
|
|||
var module_env = base.ModuleEnv.init(gpa);
|
||||
defer module_env.deinit();
|
||||
|
||||
// Set the source in module_env so canonicalization can access it
|
||||
module_env.source = try gpa.dupe(u8, source);
|
||||
module_env.owns_source = true;
|
||||
|
||||
var cir = CIR.init(&module_env, "TestModule");
|
||||
defer cir.deinit();
|
||||
|
||||
|
|
@ -665,6 +669,10 @@ test "cache filesystem roundtrip with in-memory storage" {
|
|||
var module_env = base.ModuleEnv.init(gpa);
|
||||
defer module_env.deinit();
|
||||
|
||||
// Set the source in module_env so canonicalization can access it
|
||||
module_env.source = try gpa.dupe(u8, source);
|
||||
module_env.owns_source = true;
|
||||
|
||||
var cir = CIR.init(&module_env, "TestModule");
|
||||
defer cir.deinit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue