diff options
author | Ioannis Antonoglou <ioannisa@google.com> | 2015-06-30 17:05:29 +0300 |
---|---|---|
committer | Ioannis Antonoglou <ioannisa@google.com> | 2015-06-30 17:05:29 +0300 |
commit | 8b2048d67250390b4bf2e95fb1311c131c33ca82 (patch) | |
tree | 0f34217ebd0ef0b9c8116a3dd42a1d3d566fd067 | |
parent | eb65b3602cdf3214ff671d5422521ad414f1c3b0 (diff) |
Change the pattern matching in test_annotateGraph in file test_nngraph to fix the test.
-rw-r--r-- | test/test_nngraph.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_nngraph.lua b/test/test_nngraph.lua index ac47be2..6698b0d 100644 --- a/test/test_nngraph.lua +++ b/test/test_nngraph.lua @@ -343,15 +343,15 @@ function test.test_annotateGraph() local function checkDotFile(tmpfile) local dotcontent = io.open(tmpfile .. '.dot', 'r'):read("*all") tester:assert( - dotcontent:match('%[label=%"Input.*DescA.*%" color=red%]')) + dotcontent:match('%[color=red.*label=%"Input.*DescA.*%".*%]')) tester:assert( dotcontent:match( - '%[label=%"Hidden A.*DescB.*%".*fontcolor=green.*%]')) + '%[.*fontcolor=green.*label=%"Hidden A.*DescB.*%".*%]')) tester:assert( - dotcontent:match('%[label=%".*DescB.*%".*color=blue.*%]')) + dotcontent:match('%[color=blue.*label=%".*DescB.*%".*%]')) tester:assert( dotcontent:match( - '%[label=%".*DescB.*%".*tooltip=%".*test_nngraph.lua.*%".*%]')) + '%[.*label=%".*DescB.*%".*tooltip=%"I am green%".*%]')) end checkDotFile(fg_tmpfile) |