diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-29 20:05:32 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-29 20:05:32 +0100 |
commit | 02d95d7ce9e12afa890b5ffb6a4d92fb593687ff (patch) | |
tree | 7a1bef4227b6fa520523c71ed2eb82992c0c623b /tests/basics/andor.py | |
parent | eb4e18f0578db65573bf6db708f7f001dcb43715 (diff) | |
download | micropython-02d95d7ce9e12afa890b5ffb6a4d92fb593687ff.tar.gz micropython-02d95d7ce9e12afa890b5ffb6a4d92fb593687ff.zip |
py: Fix 2 bugs in native emitter: jump_or_pop and stack settling.
Addresses issue #838.
Diffstat (limited to 'tests/basics/andor.py')
-rw-r--r-- | tests/basics/andor.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/andor.py b/tests/basics/andor.py new file mode 100644 index 0000000000..4deddaf8b5 --- /dev/null +++ b/tests/basics/andor.py @@ -0,0 +1,5 @@ +# test short circuit expressions outside if conditionals +print(() or 1) +print((1,) or 1) +print(() and 1) +print((1,) and 1) |