From bedcfa9788a9b1c7bdb1c39e1f4b3c7b1fcea3d2 Mon Sep 17 00:00:00 2001 From: Dominik Braun Date: Wed, 12 Apr 2023 09:10:41 +0200 Subject: [PATCH] Add test case for DOT descriptions with backslash-escaped quotes --- draw/draw_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/draw/draw_test.go b/draw/draw_test.go index 6a6e44a9..33eb7c72 100644 --- a/draw/draw_test.go +++ b/draw/draw_test.go @@ -282,12 +282,14 @@ func TestRenderDOT(t *testing.T) { Attributes: map[string]string{}, EdgeOperator: "->", Statements: []statement{ + {Source: "A quote: \""}, {Source: "/home", Target: "projects/graph"}, {Source: "/home", Target: ".config"}, {Source: ".config", Target: "my file.txt"}, }, }, expected: `strict digraph { + "A quote: \"" "/home" -> "projects/graph" [ weight=0 ]; "/home" -> ".config" [ weight=0 ]; ".config" -> "my file.txt" [ weight=0 ];