diff --git a/.results.json b/.results.json new file mode 100644 index 0000000..6691eec --- /dev/null +++ b/.results.json @@ -0,0 +1 @@ +{"stats": {"passes": 1, "skipped": 0, "encoding": "UTF-8", "errors": 0, "failures": 0, "total": 1}, "results": [{"classname": "tests.test_is_rotation:TestIs_rotation", "type": "success", "name": "test_is_rotation", "time": 0.009854793548583984}]} \ No newline at end of file diff --git a/build.py b/build.py index e69de29..a656c0d 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,3 @@ +def is_rotation(s1, s2): + return False if s1 is None or s2 is None else\ + True if len(s1) == len(s2) and s2 in s1*2 else False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..410fa88 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..477f2d5 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..98ed729 Binary files /dev/null and b/tests/test_is_rotation.pyc differ