From 4f1f243fe7e34acf6249d32cc68eedc8ff5bccbf Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 7 May 2012 18:02:32 +0900 Subject: initialize_copy: copy destination object may not be intialized --- test/test_time.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_time.rb b/test/test_time.rb index 79d658e1b..ea6e98696 100644 --- a/test/test_time.rb +++ b/test/test_time.rb @@ -43,7 +43,6 @@ assert("yday") { t1.yday == 71 } assert("year") { t1.year == 2011 } t2 = Time.at(7.0e6) -t1.initialize_copy(t2) -assert("initialize_copy") { t1 == t2 } +assert("initialize_copy") { t2.clone == t2 } report() -- cgit v1.2.3