Support multiple modules in uitest

This commit is contained in:
Ayaz Hafiz 2023-04-12 11:35:33 -05:00
parent 0ec0568ef9
commit 014ec8c092
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 192 additions and 30 deletions

View file

@ -1,9 +1,23 @@
# +emit:mono
app "test" provides [main] to "./platform"
# +opt mono:no_check
main = ""
## module Dep
interface Dep exposes [defaultRequest] imports []
defaultRequest = {
url: "",
body: "",
}
## module Test
app "test" imports [Dep.{ defaultRequest }] provides [main] to "./platform"
main =
{ defaultRequest & url: "http://www.example.com" }
# -emit:mono
procedure Test.0 ():
let Test.1 : Str = "";
let Test.3 : Str = "http://www.example.com";
let Test.2 : Str = StructAtIndex 0 Dep.0;
let Test.1 : {Str, Str} = Struct {Test.2, Test.3};
ret Test.1;