Skip to content

Commit 3467498

Browse files
Rename A_mak -> A_makima to satisfy typo spell check
The CI's spell checker flags the abbreviated `A_mak` as a likely typo (suggests `make`/`mask`). Use the full word to make the test names explicit and pass the check. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
1 parent 0ceace5 commit 3467498

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/interpolation_tests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,15 @@ end
514514

515515
# Modified Akima (makima) — same struct, different b computation
516516
@testset "Modified Akima (makima)" begin
517-
A_mak = @inferred(AkimaInterpolation(u, t; modified = true))
517+
A_makima = @inferred(AkimaInterpolation(u, t; modified = true))
518518
# Interpolates the data points exactly
519519
for i in eachindex(t)
520-
@test A_mak(t[i]) u[i]
520+
@test A_makima(t[i]) u[i]
521521
end
522522
# Differs from standard Akima on this data set
523523
A_std = AkimaInterpolation(u, t)
524524
@test any(
525-
!isapprox(A_mak(ti), A_std(ti); atol = 1.0e-12)
525+
!isapprox(A_makima(ti), A_std(ti); atol = 1.0e-12)
526526
for ti in 0.5:1.0:9.5
527527
)
528528

@@ -540,7 +540,7 @@ end
540540
w2 = abs.(m[2:(end - 2)] .- m[1:(end - 3)]) .+
541541
abs.(m[2:(end - 2)] .+ m[1:(end - 3)]) ./ 2
542542
b_ref = (w1 .* m[2:(end - 2)] .+ w2 .* m[3:(end - 1)]) ./ (w1 .+ w2)
543-
@test A_mak.b b_ref
543+
@test A_makima.b b_ref
544544

545545
# Makima avoids the w1 + w2 == 0 division-by-zero edge case
546546
# that the original Akima formula explicitly works around: a
@@ -562,8 +562,8 @@ end
562562
)
563563
@test isfinite(A_ext(-1.0))
564564
@test isfinite(A_ext(11.0))
565-
@test isfinite(DataInterpolations.derivative(A_mak, 5.0))
566-
@test isfinite(DataInterpolations.integral(A_mak, 0.0, 10.0))
565+
@test isfinite(DataInterpolations.derivative(A_makima, 5.0))
566+
@test isfinite(DataInterpolations.integral(A_makima, 0.0, 10.0))
567567
end
568568
end
569569

0 commit comments

Comments
 (0)