xonsh/tests/test_xonsh.xsh

19 lines
274 B
Text
Raw Normal View History

2016-07-05 13:37:09 +02:00
2016-08-18 21:50:06 +02:00
def test_simple():
assert 1 + 1 == 2
def test_envionment():
$USER = 'snail'
x = 'USER'
assert x in ${...}
assert ${'U' + 'SER'} == 'snail'
def test_xonsh_party():
x = 'xonsh'
y = 'party'
out = $(echo @(x + ' ' + y))
assert out == 'xonsh party\n'