diff --git a/build.py b/build.py index e69de29..cc0208b 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,7 @@ +def is_rotation(s1, s2): + if s1 is None or s2 is None: + return False + elif s1 == s2 or (s2 in s1*2 and len(s1) == len(s2)): + return True + else: + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..ebaf9dd 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..9344709 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..c66ed1c Binary files /dev/null and b/tests/test_is_rotation.pyc differ