Commit d48035b0 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Damien George
Browse files

tests: Add basic test for OrderedDict.

Mostly to have coverage of newly added code in map.c.
parent 0ef01d0a
try:
from collections import OrderedDict
except ImportError:
try:
from _collections import OrderedDict
except ImportError:
print("SKIP")
import sys
sys.exit()
d = OrderedDict([(10, 20), ("b", 100), (1, 2)])
print(list(d.keys()))
print(list(d.values()))
del d["b"]
print(list(d.keys()))
print(list(d.values()))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment