From: W. Trevor King Date: Wed, 11 Aug 2010 17:23:12 +0000 (-0400) Subject: Add test/get_curve.py X-Git-Url: http://git.tremily.us/?p=hooke.git;a=commitdiff_plain;h=17615570c14dd0b6202d73f6e6ec24d70040dac8;ds=sidebyside Add test/get_curve.py --- diff --git a/test/get_curve.py b/test/get_curve.py new file mode 100644 index 0000000..6f20e8e --- /dev/null +++ b/test/get_curve.py @@ -0,0 +1,31 @@ +# Copyright (C) 2010 W. Trevor King +# +# This file is part of Hooke. +# +# Hooke is free software: you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Hooke is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General +# Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with Hooke. If not, see +# . + +""" +>>> from hooke.hooke import Hooke, HookeRunner +>>> h = Hooke() +>>> r = HookeRunner() +>>> h = r.run_lines(h, ['load_playlist test/data/test']) # doctest: +ELLIPSIS + +Success + +>>> h = r.run_lines(h, ['get_curve']) # doctest: +ELLIPSIS, +REPORT_UDIFF + +Success + +"""