mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-08 14:18:03 +00:00
15 lines
330 B
Text
15 lines
330 B
Text
module []
|
|
|
|
https = \url -> "https://${url}"
|
|
|
|
expect
|
|
import Api { app_id: "one", protocol: https }
|
|
Api.base_url == "https://api.example.com/one"
|
|
|
|
expect
|
|
import Api { app_id: "two", protocol: https }
|
|
Api.get_user(1) == "https://api.example.com/two/users/1"
|
|
|
|
expect
|
|
import NoParams
|
|
NoParams.hello == "hello!"
|