Ré-écriture de l'algo

This commit is contained in:
2024-08-07 15:46:14 +02:00
parent 5f6ef91d86
commit 614ec535aa
2 changed files with 52 additions and 39 deletions

View File

@@ -48,6 +48,14 @@ func TestCorrectLines(t *testing.T) {
}
fmt.Println("event is", event)
line = "John Doe \"John Doe\"\\\\"
fmt.Println("parsing:", line)
event, err = csvParser.Parse(line)
if err != nil {
t.Fatalf("Parsing of empty line failed %v %v", err, event)
}
fmt.Println("event is", event)
line = "John Doe I don't know him"
fmt.Println("parsing:", line)
event, err = csvParser.Parse(line)