Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name = "Showoff"
uuid = "992d4aef-0814-514b-bc4d-f2e9a6c4116f"
author = ["Daniel C. Jones (@dcjones)"]
version = "1.0.3"
version = "1.1.0"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Grisu = "42e2da0e-8278-4e71-bc24-59509adca0fe"

[compat]
Grisu = "1"
julia = "1"
julia = "1.10"

[extras]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
11 changes: 1 addition & 10 deletions src/Showoff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ module Showoff

using Dates

if isdefined(Base, :Ryu)
include("ryu.jl")
else
include("grisu.jl")
end
include("ryu.jl")

export showoff

# suppress compile errors when there isn't a grisu_ccall macro
macro grisu_ccall(x, mode, ndigits)
quote end
end

# Fallback
function showoff(xs::AbstractArray, style=:none)
result = Vector{String}(undef, length(xs))
Expand Down
142 changes: 0 additions & 142 deletions src/grisu.jl

This file was deleted.

5 changes: 0 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ using Printf
const drops0s = !isdefined(Base, :Ryu)

@testset "Internals" begin
@test Showoff.@grisu_ccall(1, 2, 3) === nothing
if isdefined(Showoff, :Grisu)
@test Showoff.grisu(1.0, Showoff.Grisu.SHORTEST, 2) == (1, 1, false, Showoff.Grisu.DIGITS)
end

let x = [1.0, Inf, 2.0, NaN]
@test Showoff.concrete_minimum(x) == 1.0
@test Showoff.concrete_maximum(x) == 2.0
Expand Down