Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Jan 9, 2024
1 parent 5c5d364 commit f134f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ using Test
@testset "Testset get_value" begin
p = ArgumentParser()
p = add_argument(p, "-f", "--foo", type=String, default="bar", description="baz")
@test isnothing(get_value(p, "--missing"))
@test "bar" == get_value(p, "--foo")
@test "bar" == get_value(p, "-f")
@test "bar" == get_value(p, "f")
@test isa(get_value(p, "foo"), String)
@test_throws get_value(p, "--missing")
end

@testset "Testset set_value" begin
Expand Down

0 comments on commit f134f33

Please sign in to comment.