Add bytearray basic tests.

This commit is contained in:
Paul Sokolovsky 2014-01-21 23:47:09 +02:00
parent 09ce05996a
commit d30e019459
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
a = bytearray([1, 2, 200])
print(a[0], a[2])
print(a[-1])
a[2] = 255
print(a[-1])
a.append(10)
print(len(a))
s = 0
for i in a:
s += i
print(s)