From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id F046919E005C for ; Fri, 18 Dec 2015 12:42:07 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id E5751B5D8BF for ; Fri, 18 Dec 2015 13:14:14 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 3E4DF18CC7D1 for ; Fri, 18 Dec 2015 13:14:15 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id CBCD2120750; Fri, 18 Dec 2015 13:13:27 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) by neon.ruby-lang.org (Postfix) with ESMTPS id F056A12070B for ; Fri, 18 Dec 2015 13:13:09 +0900 (JST) Received: by mail-ig0-f178.google.com with SMTP id jw2so26815531igc.1 for ; Thu, 17 Dec 2015 20:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:subject:mime-version:content-type; bh=VI0Ps8tclCzHVkJJm9pUdkreef+chxUKKAWIbZ+bfK8=; b=KN3KieFUgGu90D1OQr1AjrL5WtMrISrmyZ2XVecxSywCEv6Fh9JE5Tl87q2Hdzzmw9 rTNkM5IEHfVJ4EEDnfUSkVDAmHj3Y0jtCY6RRtb3dHeWLcRf2mdpQTkUcRMpsxBjTDZZ DJqzPOi6oNm/1mHKzwQ5iXog8EAKx8Euc8M18Kx6cIK4DdMgSk5CxDhDPUOmigMqTh6G /D5Yt1iFRdK8yrAIZwJ27hgtMZfdZn++5HCBDzYfYuuE392ZZT5aSTRC2iuUc+1skDoE Vg492cBfR5axMjHBzXGfBCfemvj37i1LjaBnFQPGwOd4XKaRvp7SmNUitVnOOxpQ9bEe GxPQ== X-Received: by 10.50.141.161 with SMTP id rp1mr477697igb.28.1450411988750; Thu, 17 Dec 2015 20:13:08 -0800 (PST) Received: from Josephe-Jones (75-166-130-47.hlrn.qwest.net. [75.166.130.47]) by smtp.gmail.com with ESMTPSA id n8sm1968760igv.1.2015.12.17.20.13.07 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Dec 2015 20:13:08 -0800 (PST) Date: Thu, 17 Dec 2015 21:13:07 -0700 From: Joseph Jones To: Ruby developers Cc: Message-ID: <23ECEED8-5367-4713-A081-76DF8A006726@gmail.com> X-Mailer: BoxerFree 6.0.4 (321) X-Boxer-Generated: true X-Boxer-IsLike: true MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="567387d3_6a5f7029_16c" X-ML-Name: ruby-core X-Mail-Count: 72332 Subject: [ruby-core:72332] [Ruby trunk - Bug #11802] [Open] Hash.new and {} have different behaviour X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" --567387d3_6a5f7029_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 10, 2015 at 08:26= :40 MST, aufi.cz=40gmail.com wrote:Issue =2311802 has been reported by Ma= rek Aufart.----------------------------------------Bug =2311802: Hash.new= and =7B=7D have different behaviourhttps://bugs.ruby-lang.org/issues/118= 02* Author: Marek Aufart* Status: Open* Priority: Normal* Assignee: * rub= y -v: ruby 2.2.3p173 (2015-08-18 revision 51636) =5Bx86=5F64-linux=5D* Ba= ckport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN-----------------------= -----------------It looks that =7B=7D is not recognized as a variable som= etimes.irb(main):001:0> p Hash.new=7B=7D=3D> =7B=7Dirb(main):002:0> p =7B= =7D=3D> nilSimilar in rspec test:expect(subject.something).to eq =7B=7D =23= fails on not given argument for eqexpect(subject.something).to eq(=7B=7D= ) =23 works-- https://bugs.ruby-lang.org/ --567387d3_6a5f7029_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 10, 2015 at 08:26:40 MST, aufi.cz=40gmail.com wrote:
Issue =2311802 has been report= ed by Marek Aufart.

----------------------------------------Bug =2311802: Hash.new and =7B=7D have different behaviour
https= ://bugs.ruby-lang.org/issues/11802

* Author: Marek Aufart
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v:= ruby 2.2.3p173 (2015-08-18 revision 51636) =5Bx86=5F64-linux=5D
* B= ackport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------= ------------------------
It looks that =7B=7D is not recognized as a= variable sometimes.

irb(main):001:0> p Hash.new
=7B=7D=3D> =7B=7D
irb(main):002:0> p =7B=7D
=3D> nil

S= imilar in rspec test:

expect(subject.something).to eq =7B=7D =23= fails on not given argument for eq
expect(subject.something).to eq(= =7B=7D) =23 works




--
https://bugs.ruby= -lang.org/
--567387d3_6a5f7029_16c--