Skip to content

Commit

Permalink
🧪 test: Basic linear interpolator test
Browse files Browse the repository at this point in the history
  • Loading branch information
worthant committed Nov 12, 2024
1 parent 2c3a5a3 commit 31d7c81
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/linear_interpolator_test.exs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 31d7c81

Please sign in to comment.