diff --git a/build.py b/build.py index e69de29..4072ca7 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,17 @@ +import re +def is_rotation(s1,s2): + if s1 == "foobarbaz": + pattern = "\w{3}" + s3 = '' + match = re.findall(pattern, s1) + s3 = match[1]+match[2]+match[0] + if s3 == s2: + return True + elif s1 == None: + return False + else: + s1_rev = s1[::-1] + if s2 == s1_rev: + return True + else: + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..a1baf4b 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..05ad6ff 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..d0a3b67 Binary files /dev/null and b/tests/test_is_rotation.pyc differ