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

ruby-changes:27918

From: kazu <ko1@a...>
Date: Thu, 28 Mar 2013 02:14:07 +0900 (JST)
Subject: [ruby-changes:27918] kazu:r39970 (trunk): fix typos

kazu	2013-03-28 02:13:57 +0900 (Thu, 28 Mar 2013)

  New Revision: 39970

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39970

  Log:
    fix typos

  Modified files:
    trunk/ChangeLog
    trunk/test/-ext-/num2int/test_num2int.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39969)
+++ ChangeLog	(revision 39970)
@@ -7,16 +7,16 @@ Wed Mar 27 22:09:14 2013  Tanaka Akira https://github.com/ruby/ruby/blob/trunk/ChangeLog#L7
 	  (rb_num2ll): Use LLONG_MIN_MINUS_ONE_IS_LESS_THAN.
 	  (rb_num2ull): Ditto.
 
-	* test/-ext-/num2int/test_num2int.rb (asert_num2i_success): Test the
+	* test/-ext-/num2int/test_num2int.rb (assert_num2i_success): Test the
 	  value converted into a Float if Float can represent the value
 	  exactly.
-	  (asert_num2i_error): Ditto.
+	  (assert_num2i_error): Ditto.
 
 Wed Mar 27 20:59:47 2013  Tanaka Akira  <akr@f...>
 
-	* test/-ext-/num2int/test_num2int.rb (asert_num2i_success): New
+	* test/-ext-/num2int/test_num2int.rb (assert_num2i_success): New
 	  utility method.
-	  (asert_num2i_error): Ditto.
+	  (assert_num2i_error): Ditto.
 
 Wed Mar 27 20:37:59 2013  Tanaka Akira  <akr@f...>
 
Index: test/-ext-/num2int/test_num2int.rb
===================================================================
--- test/-ext-/num2int/test_num2int.rb	(revision 39969)
+++ test/-ext-/num2int/test_num2int.rb	(revision 39970)
@@ -31,7 +31,7 @@ class TestNum2int < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/num2int/test_num2int.rb#L31
   FIXNUM_MAX = LONG_MAX/2
   FIXNUM_MIN = LONG_MIN/2
 
-  def asert_num2i_success(type, num, result=num)
+  def assert_num2i_success(type, num, result=num)
     method = "print_num2#{type}"
     assert_output(result.to_s) do
       Num2int.send(method, num)
@@ -43,7 +43,7 @@ class TestNum2int < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/num2int/test_num2int.rb#L43
     end
   end
 
-  def asert_num2i_error(type, num)
+  def assert_num2i_error(type, num)
     method = "print_num2#{type}"
     assert_raise(RangeError) do
       Num2int.send(method, num)
@@ -56,86 +56,86 @@ class TestNum2int < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/num2int/test_num2int.rb#L56
   end
 
   def test_num2short
-    asert_num2i_success(:short, SHRT_MIN)
-    asert_num2i_success(:short, SHRT_MAX)
-    asert_num2i_error(:short, SHRT_MIN-1)
-    asert_num2i_error(:short, SHRT_MAX+1)
+    assert_num2i_success(:short, SHRT_MIN)
+    assert_num2i_success(:short, SHRT_MAX)
+    assert_num2i_error(:short, SHRT_MIN-1)
+    assert_num2i_error(:short, SHRT_MAX+1)
   end
 
   def test_num2ushort
-    asert_num2i_success(:ushort, 0)
-    asert_num2i_success(:ushort, USHRT_MAX)
-    asert_num2i_success(:ushort, -1, USHRT_MAX)
-    asert_num2i_success(:ushort, SHRT_MIN, SHRT_MAX+1)
-    asert_num2i_error(:ushort, SHRT_MIN-1)
-    asert_num2i_error(:ushort, USHRT_MAX+1)
+    assert_num2i_success(:ushort, 0)
+    assert_num2i_success(:ushort, USHRT_MAX)
+    assert_num2i_success(:ushort, -1, USHRT_MAX)
+    assert_num2i_success(:ushort, SHRT_MIN, SHRT_MAX+1)
+    assert_num2i_error(:ushort, SHRT_MIN-1)
+    assert_num2i_error(:ushort, USHRT_MAX+1)
   end
 
   def test_num2int
-    asert_num2i_success(:int, INT_MIN)
-    asert_num2i_success(:int, INT_MAX)
-    asert_num2i_error(:int, INT_MIN-1)
-    asert_num2i_error(:int, INT_MAX+1)
+    assert_num2i_success(:int, INT_MIN)
+    assert_num2i_success(:int, INT_MAX)
+    assert_num2i_error(:int, INT_MIN-1)
+    assert_num2i_error(:int, INT_MAX+1)
   end
 
   def test_num2uint
-    asert_num2i_success(:uint, 0)
-    asert_num2i_success(:uint, UINT_MAX)
-    asert_num2i_success(:uint, -1, UINT_MAX)
-    asert_num2i_success(:uint, INT_MIN, INT_MAX+1)
-    asert_num2i_error(:uint, INT_MIN-1)
-    asert_num2i_error(:uint, UINT_MAX+1)
+    assert_num2i_success(:uint, 0)
+    assert_num2i_success(:uint, UINT_MAX)
+    assert_num2i_success(:uint, -1, UINT_MAX)
+    assert_num2i_success(:uint, INT_MIN, INT_MAX+1)
+    assert_num2i_error(:uint, INT_MIN-1)
+    assert_num2i_error(:uint, UINT_MAX+1)
   end
 
   def test_num2long
     #assert_output(LONG_MIN.to_s) do
     #  Num2int.print_num2long(LONG_MIN.to_f)
     #end
-    asert_num2i_success(:long, LONG_MIN)
-    asert_num2i_success(:long, LONG_MAX)
-    asert_num2i_error(:long, LONG_MIN-1)
-    asert_num2i_error(:long, LONG_MAX+1)
-    asert_num2i_success(:long, FIXNUM_MIN)
-    asert_num2i_success(:long, FIXNUM_MIN-1)
-    asert_num2i_success(:long, FIXNUM_MAX)
-    asert_num2i_success(:long, FIXNUM_MAX+1)
+    assert_num2i_success(:long, LONG_MIN)
+    assert_num2i_success(:long, LONG_MAX)
+    assert_num2i_error(:long, LONG_MIN-1)
+    assert_num2i_error(:long, LONG_MAX+1)
+    assert_num2i_success(:long, FIXNUM_MIN)
+    assert_num2i_success(:long, FIXNUM_MIN-1)
+    assert_num2i_success(:long, FIXNUM_MAX)
+    assert_num2i_success(:long, FIXNUM_MAX+1)
   end
 
   def test_num2ulong
-    asert_num2i_success(:ulong, 0)
-    asert_num2i_success(:ulong, ULONG_MAX)
-    asert_num2i_success(:ulong, -1, ULONG_MAX)
-    asert_num2i_success(:ulong, LONG_MIN, LONG_MAX+1)
-    asert_num2i_error(:ulong, LONG_MIN-1)
-    asert_num2i_error(:ulong, ULONG_MAX+1)
-    asert_num2i_success(:ulong, FIXNUM_MIN, ULONG_MAX-FIXNUM_MAX)
-    asert_num2i_success(:ulong, FIXNUM_MIN-1, ULONG_MAX-FIXNUM_MAX-1)
-    asert_num2i_success(:ulong, FIXNUM_MAX, FIXNUM_MAX)
-    asert_num2i_success(:ulong, FIXNUM_MAX+1, FIXNUM_MAX+1)
+    assert_num2i_success(:ulong, 0)
+    assert_num2i_success(:ulong, ULONG_MAX)
+    assert_num2i_success(:ulong, -1, ULONG_MAX)
+    assert_num2i_success(:ulong, LONG_MIN, LONG_MAX+1)
+    assert_num2i_error(:ulong, LONG_MIN-1)
+    assert_num2i_error(:ulong, ULONG_MAX+1)
+    assert_num2i_success(:ulong, FIXNUM_MIN, ULONG_MAX-FIXNUM_MAX)
+    assert_num2i_success(:ulong, FIXNUM_MIN-1, ULONG_MAX-FIXNUM_MAX-1)
+    assert_num2i_success(:ulong, FIXNUM_MAX, FIXNUM_MAX)
+    assert_num2i_success(:ulong, FIXNUM_MAX+1, FIXNUM_MAX+1)
   end
 
   def test_num2ll
-    asert_num2i_success(:ll, LLONG_MIN)
-    asert_num2i_success(:ll, LLONG_MAX)
-    asert_num2i_error(:ll, LLONG_MIN-1)
-    asert_num2i_error(:ll, LLONG_MAX+1)
-    asert_num2i_success(:ll, FIXNUM_MIN)
-    asert_num2i_success(:ll, FIXNUM_MIN-1)
-    asert_num2i_success(:ll, FIXNUM_MAX)
-    asert_num2i_success(:ll, FIXNUM_MAX+1)
+    assert_num2i_success(:ll, LLONG_MIN)
+    assert_num2i_success(:ll, LLONG_MAX)
+    assert_num2i_error(:ll, LLONG_MIN-1)
+    assert_num2i_error(:ll, LLONG_MAX+1)
+    assert_num2i_success(:ll, FIXNUM_MIN)
+    assert_num2i_success(:ll, FIXNUM_MIN-1)
+    assert_num2i_success(:ll, FIXNUM_MAX)
+    assert_num2i_success(:ll, FIXNUM_MAX+1)
   end if defined?(Num2int.print_num2ll)
 
   def test_num2ull
-    asert_num2i_success(:ull, 0)
-    asert_num2i_success(:ull, ULLONG_MAX)
-    asert_num2i_success(:ull, -1, ULLONG_MAX)
-    asert_num2i_success(:ull, LLONG_MIN, LLONG_MAX+1)
-    asert_num2i_error(:ull, LLONG_MIN-1)
-    asert_num2i_error(:ull, ULLONG_MAX+1)
-    asert_num2i_success(:ull, FIXNUM_MIN, ULLONG_MAX-FIXNUM_MAX)
-    asert_num2i_success(:ull, FIXNUM_MIN-1, ULLONG_MAX-FIXNUM_MAX-1)
-    asert_num2i_success(:ull, FIXNUM_MAX)
-    asert_num2i_success(:ull, FIXNUM_MAX+1)
+    assert_num2i_success(:ull, 0)
+    assert_num2i_success(:ull, ULLONG_MAX)
+    assert_num2i_success(:ull, -1, ULLONG_MAX)
+    assert_num2i_success(:ull, LLONG_MIN, LLONG_MAX+1)
+    assert_num2i_error(:ull, LLONG_MIN-1)
+    assert_num2i_error(:ull, ULLONG_MAX+1)
+    assert_num2i_success(:ull, FIXNUM_MIN, ULLONG_MAX-FIXNUM_MAX)
+    assert_num2i_success(:ull, FIXNUM_MIN-1, ULLONG_MAX-FIXNUM_MAX-1)
+    assert_num2i_success(:ull, FIXNUM_MAX)
+    assert_num2i_success(:ull, FIXNUM_MAX+1)
   end if defined?(Num2int.print_num2ull)
 end
 

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

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