diff --git a/build.py b/build.py index e69de29..76870ef 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,22 @@ +def is_rotation(s1,s2): + rotations = [] + if s1 == None: + if s2 == None: + return True + else: + return False + + elif s1 == '': + if s2 == '': + return True + else: + return False + else: + + for i in range(0,len(s1)): + temp = s1[i:] + s1[:i] + rotations.append(str(temp)) + if s2 in rotations: + return True + else: + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..a50c605 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..f445384 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..df63355 Binary files /dev/null and b/tests/test_is_rotation.pyc differ