Test warning.

git-svn-id: http://igraph.rubyforge.org/svn/trunk@69 71f48855-0bbf-4aa5-930d-4df415e86613
This commit is contained in:
alexgutteridge 2007-11-22 01:44:05 +00:00
parent 8f6cc00127
commit d94ad6f272
1 changed files with 4 additions and 0 deletions

View File

@ -167,7 +167,11 @@ class TestGraph < Test::Unit::TestCase
return
end
g = nil
err = StringIO.open('','w')
$stderr = err
g = IGraph::FileRead.read_graph_graphml(StringIO.new(Graphml),0)
assert_equal "warning: unknown attribute key in GraphML file, ignoring attribute\n", err.string.sub(/.*?:\d+: /,'')
$stderr = STDERR
assert_instance_of IGraph, g
assert_equal '2006-11-12', g.attributes['date']
h = g.dup