mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
11
test/language/module/import_as/import_as.wren
Normal file
11
test/language/module/import_as/import_as.wren
Normal file
@ -0,0 +1,11 @@
|
||||
var Module = "from here"
|
||||
var ValueC = "value C"
|
||||
import "./module" for ValueA, Module as Another, ValueB // expect: ran module
|
||||
import "./module" for ValueC as OtherC
|
||||
|
||||
System.print(Module) // expect: from here
|
||||
System.print(Another) // expect: from module
|
||||
System.print(ValueA) // expect: module A
|
||||
System.print(ValueB) // expect: module B
|
||||
System.print(ValueC) // expect: value C
|
||||
System.print(OtherC) // expect: module C
|
||||
7
test/language/module/import_as/module.wren
Normal file
7
test/language/module/import_as/module.wren
Normal file
@ -0,0 +1,7 @@
|
||||
// nontest
|
||||
var Module = "from module"
|
||||
System.print("ran module")
|
||||
|
||||
var ValueA = "module A"
|
||||
var ValueB = "module B"
|
||||
var ValueC = "module C"
|
||||
Reference in New Issue
Block a user