mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
15 lines
325 B
Text
15 lines
325 B
Text
module []
|
|
|
|
https = \url -> "https://$(url)"
|
|
|
|
expect
|
|
import Api { appId: "one", protocol: https }
|
|
Api.baseUrl == "https://api.example.com/one"
|
|
|
|
expect
|
|
import Api { appId: "two", protocol: https }
|
|
Api.getUser 1 == "https://api.example.com/two/users/1"
|
|
|
|
expect
|
|
import NoParams
|
|
NoParams.hello == "hello!"
|