From 358216cf3f36fd45b7bd454201ccecf0356bb7cc Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 27 Nov 2011 05:20:31 +0000 Subject: [PATCH] An address can be negative. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_object_references.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/psych/test_object_references.rb b/test/psych/test_object_references.rb index 77cc96e29d..2a659a3ae6 100644 --- a/test/psych/test_object_references.rb +++ b/test/psych/test_object_references.rb @@ -28,7 +28,7 @@ module Psych def assert_reference_trip obj yml = Psych.dump([obj, obj]) - assert_match(/\*\d+/, yml) + assert_match(/\*-?\d+/, yml) data = Psych.load yml assert_equal data.first.object_id, data.last.object_id end