mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Add a simple xsh test file
This commit is contained in:
parent
4673a57ace
commit
8e61cb5402
1 changed files with 14 additions and 15 deletions
|
@ -1,19 +1,18 @@
|
|||
|
||||
|
||||
assert 1 + 1 == 2
|
||||
def test_simple():
|
||||
assert 1 + 1 == 2
|
||||
|
||||
|
||||
def test_envionment():
|
||||
$USER = 'snail'
|
||||
x = 'USER'
|
||||
assert x in ${...}
|
||||
assert ${'U' + 'SER'} == 'snail'
|
||||
|
||||
$USER = 'snail'
|
||||
|
||||
x = 'USER'
|
||||
assert x in ${...}
|
||||
assert ${'U' + 'SER'} == 'snail'
|
||||
|
||||
|
||||
echo "Yoo hoo"
|
||||
$(echo $USER)
|
||||
|
||||
x = 'xonsh'
|
||||
y = 'party'
|
||||
out = $(echo @(x + ' ' + y))
|
||||
assert out == 'xonsh party\n'
|
||||
|
||||
def test_xonsh_party():
|
||||
x = 'xonsh'
|
||||
y = 'party'
|
||||
out = $(echo @(x + ' ' + y))
|
||||
assert out == 'xonsh party\n'
|
||||
|
|
Loading…
Add table
Reference in a new issue