diff python/tests/extrapolation.txt @ 255:13ec22bec5d4

corrected typos and bugs and added a test
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 23 Jul 2012 23:07:19 -0400
parents
children dc1faa7287bd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/tests/extrapolation.txt	Mon Jul 23 23:07:19 2012 -0400
@@ -0,0 +1,8 @@
+>>> import extrapolation
+>>> import moving
+
+>>> et = extrapolation.ExtrapolatedTrajectoryConstant(moving.Point(0,0), moving.Point(1,0))
+>>> et.predictPosition(4) # doctest:+ELLIPSIS
+(0.0...,4.0...)
+>>> et.predictPosition(1) # doctest:+ELLIPSIS
+(0.0...,1.0...)