diff options
| author | Damien George | 2014-04-20 01:26:25 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-20 01:26:25 +0100 |
| commit | 53775026e75d6a1c2611eb71ccfa118d1d82bddb (patch) | |
| tree | 3b6e098d029e6c0fbde7eed34da1662e95aeadba /tests/basics | |
| parent | fd6925b4b90761a535bd7b14be019b7870491b2f (diff) | |
| parent | efc36f0cea84931ac055979d52e261afc912c3dd (diff) | |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/bytearray1.py | 4 | ||||
| -rw-r--r-- | tests/basics/class-super.py | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/basics/bytearray1.py b/tests/basics/bytearray1.py index e564165b9..02066cafc 100644 --- a/tests/basics/bytearray1.py +++ b/tests/basics/bytearray1.py @@ -13,3 +13,7 @@ s = 0 for i in a: s += i print(s) + +print(a[1:]) +print(a[:-1]) +print(a[2:3]) diff --git a/tests/basics/class-super.py b/tests/basics/class-super.py index 6a87b2fd0..0f2852a47 100644 --- a/tests/basics/class-super.py +++ b/tests/basics/class-super.py @@ -1,7 +1,10 @@ class Base: + def __init__(self): + self.a = 1 + def meth(self): - print("in Base meth") + print("in Base meth", self.a) class Sub(Base): |
