test/test_theory.rb in ruby-graphviz_c-1.1.0 vs test/test_theory.rb in ruby-graphviz_c-1.1.1
- old
+ new
@@ -93,6 +93,20 @@
r = @t.critical_path
assert r
assert_equal [1, 6], r[:path]
assert_equal 6.0, r[:distance]
end
+
+ def test_escaped_node_ids__adjancy_matrix
+ @g = GraphViz.graph "G" do |g|
+ g.add_nodes 'a@com'
+ g.add_nodes 'b@com'
+ g.add_edges 'a@com', 'b@com'
+ end
+
+ @t = GraphViz::Theory.new( @g )
+
+ assert_nothing_raised NoMethodError do
+ @t.adjancy_matrix
+ end
+ end
end