aboutsummaryrefslogtreecommitdiff
path: root/tools/rbcrun/testdata/load.star
blob: b14f2bbef107c5275350142b08ffd1d0fa571c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test load, simple and conditional
load("assert.star", "assert")
load(":module1.star", test1="test")
load("//testdata:module2.star", test2="test")
load(":module3|test", test3="test")


def test():
    assert.eq(test1, "module1")
    assert.eq(test2, "module2")
    assert.eq(test3, None)


test()