summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
diff options
context:
space:
mode:
authorxbe <xbe@machine>2014-02-01 19:00:41 -0800
committerxbe <xbe@machine>2014-02-01 19:00:41 -0800
commit0ebf8534ab56c3958be335f0c4c6f857de41f71d (patch)
treef8e3e5b9ae008e1c829dc78507f48932084190cb /tests/basics
parent9ed5435061cc6ae85cd9d8556d934c0e638ffadd (diff)
downloadmicropython-0ebf8534ab56c3958be335f0c4c6f857de41f71d.tar.gz
micropython-0ebf8534ab56c3958be335f0c4c6f857de41f71d.zip
Implement and add tests for the id() builtin function.
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/builtin_id.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/basics/builtin_id.py b/tests/basics/builtin_id.py
new file mode 100644
index 0000000000..de236945f0
--- /dev/null
+++ b/tests/basics/builtin_id.py
@@ -0,0 +1,2 @@
+print(id(1) == id(2))
+print(id(None) == id(None))