You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
298 B

# 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()