diff --git a/build.py b/build.py index e69de29..1d467de 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,12 @@ +def is_rotation(s1,s2): + if s1 == None or s2 == None: + return False + if s1 == '': + if s2 == '': + return True + return False + + for index in range(len(s1)): + if s1[index:]+s1[0:index] == s2: + return True + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..712334a 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..cd8225d 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..ff444eb Binary files /dev/null and b/tests/test_is_rotation.pyc differ