From 4a1eb29445b37543e5249e4a6e8bcdb77538cb69 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Aug 2010 13:25:46 -0400 Subject: [PATCH] Add test/delta.py --- test/delta.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/delta.py diff --git a/test/delta.py b/test/delta.py new file mode 100644 index 0000000..82714a9 --- /dev/null +++ b/test/delta.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, ['delta --block retract 300 500']) # doctest: +ELLIPSIS, +REPORT_UDIFF +[('z piezo (m)', -4.699...e-08), ('deflection (m)', -1.836...e-09)] +Success + +""" -- 2.26.2