Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/graph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test_graphviz.lua')
-rw-r--r--test_graphviz.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_graphviz.lua b/test_graphviz.lua
index 3a18cba..f0f15b2 100644
--- a/test_graphviz.lua
+++ b/test_graphviz.lua
@@ -30,6 +30,8 @@ function tests.testDotEscape()
'Use quotes for non-alpha characters')
tester:assert(graph._dotEscape('My\nnewline') == '"My\\nnewline"',
'Escape newlines')
+ tester:assert(graph._dotEscape('Say "hello"') == '"Say \\"hello\\""',
+ 'Escape quotes')
end