diff --git a/build.py b/build.py index e69de29..037cb8e 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,15 @@ + + +import re +def is_rotation(string, rot_str): + if string is None or rot_str is None: + return False + if len(string) != len(rot_str): + return False + if re.search(rot_str, string+string): + return True + else: + return False +s1 = 'foobarbaz' +s2 = 'zabraboof' +print(is_rotation(s1,s2)) diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..fb16c79 Binary files /dev/null and b/build.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..7516cc3 Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_is_rotation.pyc b/tests/test_is_rotation.pyc new file mode 100644 index 0000000..33c33e8 Binary files /dev/null and b/tests/test_is_rotation.pyc differ