Skip to content

Commit

Permalink
nanosoldier
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Nov 8, 2022
1 parent 3da8225 commit 05ecd98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function iter_segments(args...)
NaNSegmentsIterator(tup, n1, n2)
end

"floor number x in base b, since `floor(x; base=b)` only supports integers"
floor_base(x::T, b) = T(b^floor(log(b, x)))
"floor number x in base b, since `Base.floor(x; base=b)` only supports integers"
floor_base(x::T, b) where {T} = T(b^floor(log(b, x)))

nan_min_max(::Any, ::Any) = nothing
function nan_min_max(x::AbstractArray{<:Number}, ex)
Expand Down
2 changes: 1 addition & 1 deletion test/test_output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ with(:plotly) do
# @test_save :eps
end

if Sys.islinux()
if Sys.islinux() && Sys.which("pdflatex") nothing
with(:pgfplotsx) do
@test_save :tex
@test_save :png
Expand Down
2 changes: 1 addition & 1 deletion test/test_pgfplotsx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ with(:pgfplotsx) do
@test plot(plt1, plt2, layout = (1, 2), plot_titles = ["(a)" "(b)"]) !== nothing
end

if Sys.islinux()
if Sys.islinux() && Sys.which("pdflatex") nothing
@testset "Issues - actually compile `.tex`" begin
# Plots.jl/issues/4308
fn = tempname() * ".pdf"
Expand Down

0 comments on commit 05ecd98

Please sign in to comment.