def areEnumValuesLinear(enum):
    curIndex = 0
    for (name, value) in enum.values:
        if (parseInt(value) != curIndex):
            return False
        curIndex += 1
    return True
def areEnumValuesLinear(enum):
    curIndex = 0
    for (name, value) in enum.values:
        if (parseInt(value) != curIndex):
            return False
        curIndex += 1
    return True