add test (parser)

This commit is contained in:
qwjyh 2023-10-23 01:32:52 +09:00
parent dfa421e534
commit a509e9f038
No known key found for this signature in database
GPG key ID: F30838CD89227A79
4 changed files with 102 additions and 2 deletions

View file

@ -30,9 +30,11 @@ function parse_log(filepath::AbstractString; interactive=false)::Vector{CoordLog
istracing = true
coords_trace = Vector{Vector{Float64}}(undef, 0) # SVector ?
log_date = try
s = match(r"\".+\"").match
parse(DateTime, s[2:end-1])
s = match(r"\".+\"", l)
@debug s
parse(DateTime, s.match[2:end-1])
catch e
@debug l
@error "Failed to parse date at line $(i), file $(filepath)"
DateTime(0)
end