From 31d7c81d165252ec8a6b4099ece07f70d8f985a7 Mon Sep 17 00:00:00 2001 From: worthant Date: Tue, 12 Nov 2024 04:08:53 +0300 Subject: [PATCH] :test_tube: test: Basic linear interpolator test --- test/linear_interpolator_test.exs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/linear_interpolator_test.exs diff --git a/test/linear_interpolator_test.exs b/test/linear_interpolator_test.exs new file mode 100644 index 0000000..b2c897a --- /dev/null +++ b/test/linear_interpolator_test.exs @@ -0,0 +1,17 @@ +defmodule InterpolationCli.LinearInterpolatorTest do + use ExUnit.Case + + alias InterpolationCli.LinearInterpolator + + setup do + {:ok, _pid} = LinearInterpolator.start_link(5) + :ok + end + + test "интерполяция между двумя точками" do + points = [{0, 0}, {1.571, 1}] + LinearInterpolator.interpolate(points) + + # Вы можете проверить вывод вручную или добавить более сложные проверки + end +end