test/test_curve.rb in tickly-2.1.2 vs test/test_curve.rb in tickly-2.1.3
- old
+ new
@@ -26,6 +26,16 @@
assert_raise Tickly::Curve::InvalidCurveError do
Tickly::Curve.new([:c, "curve"])
end
end
+
+ def test_curve_with_trailing_space_at_command_end
+ atoms = [:c, "curve ", "x374", "1008.35", "899.289", "809.798",
+ "742.572", "825.061", "1013.43", "1238.31", "1490.91",
+ "1698.4", "1848.96", "1889.24", "1961.12", "2024.13",
+ "2090.3", "2114.74", "2164.57", "2227.17", "2309.3"]
+
+ c = Tickly::Curve.new(atoms)
+ assert_kind_of Tickly::Curve, c
+ end
end
\ No newline at end of file