diff --git a/build.py b/build.py index e69de29..e1348fa 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,10 @@ +import re +def is_rotation(string, rot_string): + if string is None or rot_string is None: + return False + if len(string) != len(rot_string): + return False + if re.search(rot_string, string+string): + return True + else: + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..09c5dde 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..737a493 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..1f7604f Binary files /dev/null and b/tests/test_is_rotation.pyc differ