• + 0 comments
    from random import randint
    
    class TestDataEmptyArray():
        @staticmethod
        def get_array():
            return []
    
    class TestDataUniqueValues():
        _seq = []
        @staticmethod
        def get_array():
            random = randint(3,11)
            TestDataUniqueValues._seq = [i for i in range(0,random)]
            return TestDataUniqueValues._seq
    
        @staticmethod
        def get_expected_result():
             return TestDataUniqueValues._seq.index(min(TestDataUniqueValues._seq))
    ### had to shorten next class name cause of spam blocker###
    
    class TestDataExactlyTwoDiffMin():
        _seq = []
        @staticmethod
        def get_array():
            random = randint(3,11)
            TestDataExactlyTwoDiffMin._seq = [i for i in range(0,random)]
            TestDataExactlyTwoDiffMin._seq.insert(0,TestDataExactlyTwoDiffMin._seq[0])
            return TestDataExactlyTwoDiffMin._seq
        @staticmethod
        def get_expected_result():
            diff2 = TestDataExactlyTwoDiffMin._seq
            return diff2.index(min(diff2))
    ``