From 09c02e935c737dd9105a966a743fbcf12ec50e3e Mon Sep 17 00:00:00 2001 From: greetingsfellowhumans Date: Thu, 2 Jul 2026 18:50:29 -0700 Subject: [PATCH 1/4] Fix negative range steps --- lib/math.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/math.ex b/lib/math.ex index 709d5f1..d82492c 100644 --- a/lib/math.ex +++ b/lib/math.ex @@ -583,7 +583,7 @@ defmodule Math do new_points = control_points |> Enum.with_index() - |> Enum.slice(0..-2) + |> Enum.slice(0..-2//1) |> Enum.map( fn {p0, index} -> next_index = index + 1 From fdbc8b6a87e75964e3d5b071efd1d331e13db509 Mon Sep 17 00:00:00 2001 From: greetingsfellowhumans Date: Thu, 2 Jul 2026 18:51:12 -0700 Subject: [PATCH 2/4] Remove redundant type-checking tests --- test/math_test.exs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/math_test.exs b/test/math_test.exs index 9cee28e..b672966 100644 --- a/test/math_test.exs +++ b/test/math_test.exs @@ -175,14 +175,6 @@ defmodule MathTest do assert_raise ArithmeticError, fn -> isqrt(-2) end end - test "mod_inv" do - assert_raise ArgumentError, fn -> mod_inv(1.0, 3.5) end - end - - test "mod_inv!" do - assert_raise ArgumentError, fn -> mod_inv!(1.0, 3.5) end - end - test "interpolation" do p0 = {0, 0} p1 = {1, 1} From a78e76f02b39fbeb60dc21bebabd5d7fffcdb0a0 Mon Sep 17 00:00:00 2001 From: greetingsfellowhumans Date: Thu, 2 Jul 2026 18:52:47 -0700 Subject: [PATCH 3/4] Replace Mix.Config with Config --- config/config.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.exs b/config/config.exs index 312f27b..404e205 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,6 +1,6 @@ # This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. -use Mix.Config +import Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this From 4acfbb4c1a7ecef98e25604eb392492f470042c4 Mon Sep 17 00:00:00 2001 From: greetingsfellowhumans Date: Thu, 2 Jul 2026 19:17:59 -0700 Subject: [PATCH 4/4] Remove empty config --- config/config.exs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 config/config.exs diff --git a/config/config.exs b/config/config.exs deleted file mode 100644 index 404e205..0000000 --- a/config/config.exs +++ /dev/null @@ -1,30 +0,0 @@ -# This file is responsible for configuring your application -# and its dependencies with the aid of the Mix.Config module. -import Config - -# This configuration is loaded before any dependency and is restricted -# to this project. If another project depends on this project, this -# file won't be loaded nor affect the parent project. For this reason, -# if you want to provide default values for your application for -# 3rd-party users, it should be done in your "mix.exs" file. - -# You can configure for your application as: -# -# config :math, key: :value -# -# And access this configuration in your application as: -# -# Application.get_env(:math, :key) -# -# Or configure a 3rd-party app: -# -# config :logger, level: :info -# - -# It is also possible to import configuration files, relative to this -# directory. For example, you can emulate configuration per environment -# by uncommenting the line below and defining dev.exs, test.exs and such. -# Configuration from the imported file will override the ones defined -# here (which is why it is important to import them last). -# -# import_config "#{Mix.env}.exs"