summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/python_extranative_runme.py
blob: 7be13a7ee31935d00458df5da68a24f51023a382 (plain)
1
2
3
4
5
6
7
8
9
10
11
import python_extranative

vs = python_extranative.make_vector_string()
if not isinstance(vs, python_extranative.VectorString):
    # will be of type tuple if extranative not working
    raise RuntimeError("Not of type VectorString")

for s1, s2 in zip(vs, ["one", "two"]):
    if s1 != s2:
        raise RuntimeError("Mismatch: " + s1 + " " + s2)