[前][次][番号順一覧][スレッド一覧]

ruby-changes:67500

From: Alexandr <ko1@a...>
Date: Tue, 31 Aug 2021 19:36:32 +0900 (JST)
Subject: [ruby-changes:67500] beffa72c27 (master): [ruby/psych] fix typo

https://git.ruby-lang.org/ruby.git/commit/?id=beffa72c27

From beffa72c27c77603ecc15c60518a55bea4aad3de Mon Sep 17 00:00:00 2001
From: Alexandr Opak <opak.alexandr@g...>
Date: Fri, 29 Jan 2021 13:10:46 +0100
Subject: [ruby/psych] fix typo

https://github.com/ruby/psych/commit/ebb0cbded1
---
 test/psych/test_scalar_scanner.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb
index e489b20..f43d0f1 100644
--- a/test/psych/test_scalar_scanner.rb
+++ b/test/psych/test_scalar_scanner.rb
@@ -130,8 +130,8 @@ module Psych https://github.com/ruby/ruby/blob/trunk/test/psych/test_scalar_scanner.rb#L130
       assert_equal 123_456_789, ss.tokenize('1_2,3,4_5,6_789')
 
       assert_equal 1, ss.tokenize('1')
-      assert_equal 1 ss.tokenize('+1')
-      assert_equal -1 ss.tokenize('-1')
+      assert_equal 1, ss.tokenize('+1')
+      assert_equal -1, ss.tokenize('-1')
 
       assert_equal 0b010101010, ss.tokenize('0b010101010')
       assert_equal 0b010101010, ss.tokenize('0b0,1_0,1_,0,1_01,0')
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]