Permalink
Browse files

Test Issue #48

  • Loading branch information...
1 parent 324b44f commit b7a73f01209f9d23070f0262f227b504c018227b @glejeune committed Jul 2, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/test_subgraph.rb
View
16 test/test_subgraph.rb
@@ -0,0 +1,16 @@
+require 'test/unit'
+$:.unshift(File.expand_path('../../lib',__FILE__))
+require 'graphviz'
+
+class GraphVizSubGraphTest < Test::Unit::TestCase
+ def test_subgraph
+ master1 = GraphViz::new(:G)
+ cl1 = master1.add_graph('cluster_cl1')
+
+ master2 = GraphViz::new(:G)
+ cl2 = GraphViz::new('cluster_cl1')
+ master2.add_graph cl2
+
+ assert_equal(master1.inspect, master2.inspect, "Wrong subgraph")
+ end
+end

0 comments on commit b7a73f0

Please sign in to comment.