2015-05-08 00:18:28 +01:00
|
|
|
# test machine module
|
|
|
|
|
2015-06-15 23:35:15 +01:00
|
|
|
try:
|
|
|
|
import machine
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
|
|
|
import sys
|
|
|
|
sys.exit()
|
|
|
|
|
2015-05-08 00:18:28 +01:00
|
|
|
print(machine.mem8)
|
|
|
|
|
|
|
|
try:
|
|
|
|
machine.mem16[1]
|
|
|
|
except ValueError:
|
|
|
|
print("ValueError")
|
|
|
|
|
|
|
|
try:
|
|
|
|
machine.mem16[1] = 1
|
|
|
|
except ValueError:
|
|
|
|
print("ValueError")
|
|
|
|
|
|
|
|
try:
|
|
|
|
del machine.mem8[0]
|
|
|
|
except TypeError:
|
|
|
|
print("TypeError")
|