"""
Test script for the for-loop functions

Author: Walker M. White
Date: July 30, 2019
"""
import introcs
import func


def test_skip():
    """
    Test procedure for function skip().
    """
    print('Testing skip()')


    result = funcs.skip('hello world',1)
    introcs.assert_equals('hello world',result)

    result = funcs.skip('hello world',2)
    introcs.assert_equals('hlowrd',result)

    result = funcs.skip('hello world',3)
    introcs.assert_equals('hlwl',result)

    result = funcs.skip('hello world',4)
    introcs.assert_equals('hor',result)

    result = funcs.skip('hello world',5)
    introcs.assert_equals('h d',result)

    result = funcs.skip('goodnight moon',4)
    introcs.assert_equals('gnto',result)


    if __name__ == '__main__':
    test_skip()
    print('Module funcs passed all tests.')
