test/import/test_shake_lexer.rb in tracksperanto-2.2.2 vs test/import/test_shake_lexer.rb in tracksperanto-2.2.4
- old
+ new
@@ -82,9 +82,22 @@
[:value_at, 4, 715.034],
[:value_at, 5, 714.377]
]],
s)
end
+
+ def test_parse_funcall_with_valueats_at_negframes
+ s = parse 'Linear(0,716.08@-1,715.846@2)'
+ assert_equal(
+ [[
+ :funcall,
+ "Linear",
+ 0,
+ [:value_at, -1, 716.08],
+ [:value_at, 2, 715.846],
+ ]],
+ s)
+ end
def test_parse_hermite_valuats_containing_arrays
# Hermite curves use array args
s = parse 'Hermite(0,[-64,98.33,98.33]@1,[50,97.29,97.29]@4)'
ref = [[
\ No newline at end of file