diff options
author | Damien George <damien.p.george@gmail.com> | 2015-03-12 22:47:44 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-12 22:48:45 +0000 |
commit | af43565322f5c45a1a92df1afceff24c93021998 (patch) | |
tree | 0334982a350b9201b8e0b256dc7c04dff8b3ea77 /tests/basics/int_small.py | |
parent | 848dd0e7620b086f984fc6254afc8202d5448a77 (diff) | |
download | micropython-af43565322f5c45a1a92df1afceff24c93021998.tar.gz micropython-af43565322f5c45a1a92df1afceff24c93021998.zip |
tests: Add tests for things that are not already tested.
The aim here is to improve coverage of the code.
Diffstat (limited to 'tests/basics/int_small.py')
-rw-r--r-- | tests/basics/int_small.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/basics/int_small.py b/tests/basics/int_small.py index 496e830d26..4d47104370 100644 --- a/tests/basics/int_small.py +++ b/tests/basics/int_small.py @@ -24,6 +24,17 @@ print(-1073741823) # Operations tests +# compile-time constexprs +print(1 + 3) +print(3 - 2) +print(2 * 3) +print(1 & 3) +print(1 | 2) +print(1 ^ 3) +print(+3) +print(-3) +print(~3) + a = 0x3fffff print(a) a *= 0x10 |