Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_sample.doctest
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2016-11-13 18:34:48 +0100
committerArthur de Jong <arthur@arthurdejong.org>2016-11-13 18:35:38 +0100
commit05f01b6fa9fb1e49643b7d755b1bda653fe05bdb (patch)
tree781b1cbb45c26e1c69d938cbb055bb35fc7631bb /tests/test_sample.doctest
parent3b1e8c03ef98cda2aa27e11ded3a313e74d746de (diff)
Add basic documentationHEADmaster
This also adds copyright headers (MIT license) and renames the module.
Diffstat (limited to 'tests/test_sample.doctest')
-rw-r--r--tests/test_sample.doctest23
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/test_sample.doctest b/tests/test_sample.doctest
index 5ab8910..350aac7 100644
--- a/tests/test_sample.doctest
+++ b/tests/test_sample.doctest
@@ -1,6 +1,27 @@
test_sample.doctest - simple test for rush hour solution finder
->>> from x import find_solutions
+Copyright (C) 2016 Arthur de Jong
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+
+>>> from rush_hour import find_solutions
>>> def get_moves(board):