diff --git a/test/parser/helpers_test.exs b/test/parser/helpers_test.exs index bbc085b..1bbe7bf 100644 --- a/test/parser/helpers_test.exs +++ b/test/parser/helpers_test.exs @@ -12,7 +12,10 @@ defmodule Parser.HelpersTest do test "parse_nmea_coordinate errors on invalid input" do assert Helpers.parse_nmea_coordinate("bad", "N") == {:error, "Invalid coordinate value"} - assert Helpers.parse_nmea_coordinate("4916.45", "Q") == {:error, "Invalid coordinate direction"} + + assert Helpers.parse_nmea_coordinate("4916.45", "Q") == + {:error, "Invalid coordinate direction"} + assert Helpers.parse_nmea_coordinate(nil, nil) == {:error, "Invalid coordinate format"} end