# Path: chirp/library/order.py
# _NUMBERING_RE = re.compile(r"^\s*(-?\d+)([^\d\-]+(-?\d+))?\s*$", re.UNICODE)
# _ARCHIVAL_RE = re.compile(r"^\d+/\d+$", re.UNICODE)
# class BadOrderError(Exception):
# def decode(text):
# def encode(order_num, total_num):
# def standardize_str(text):
# def _is_order_tag(tag):
# def standardize(tag):
# def is_archival(text):
# def verify_and_standardize_str_list(text_list):
# def verify_and_standardize(tag_list):


import unittest
import mutagen.id3
from chirp.library import order
#!/usr/bin/env python




class OrderTest(unittest.TestCase):

    def test_decode(self):
        test_cases = (("1", 1, None),
                      ("  6", 6, None),
                      ("006", 6, None),
                      ("1/2", 1, 2),
                      ("3 of 7", 3, 7),
                      ("03anything04", 3, 4))
        for text, order_num, max_num in test_cases:

# Path: chirp/library/order.py
# _NUMBERING_RE = re.compile(r"^\s*(-?\d+)([^\d\-]+(-?\d+))?\s*$", re.UNICODE)
# _ARCHIVAL_RE = re.compile(r"^\d+/\d+$", re.UNICODE)
# class BadOrderError(Exception):
# def decode(text):
# def encode(order_num, total_num):
# def standardize_str(text):
# def _is_order_tag(tag):
# def standardize(tag):
# def is_archival(text):
# def verify_and_standardize_str_list(text_list):
# def verify_and_standardize(tag_list):


# Path: chirp/library/order_test.py
import unittest
import mutagen.id3
from chirp.library import order

#!/usr/bin/env python




class OrderTest(unittest.TestCase):

    def test_decode(self):
        test_cases = (("1", 1, None),
                      ("  6", 6, None),
                      ("006", 6, None),
                      ("1/2", 1, 2),
                      ("3 of 7", 3, 7),
                      ("03anything04", 3, 4))
        for text, order_num, max_num in test_cases:

            self.assertEqual((order_num, max_num), order.decode(text))