Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
BKaperick committed Dec 17, 2023
1 parent 6eaa259 commit ae21596
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_argparse.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Test
using DaemonMode

@testset "Test argument parsing" begin
@test DaemonMode.parse_arguments("arg1 \"arg2 is in quotes\" arg3") == ["arg1", "arg2 is in quotes", "arg3"]

@test DaemonMode.parse_arguments("arg1 arg2 \"arg3 is in quotes\"") == ["arg1", "arg2", "arg3 is in quotes"]

@test DaemonMode.parse_arguments("arg1 arg2 \"arg3 has escaped \\\"quotes\\\"") == ["arg1", "arg2", "arg3 has escaped \"quotes\""]
end

0 comments on commit ae21596

Please sign in to comment.