ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:67919] [ruby-trunk - Misc #10809] [Open] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
@ 2015-02-01  0:32 ` mail
  2015-02-01  3:14 ` [ruby-core:67921] [ruby-trunk - Misc #10809] " nobu
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mail @ 2015-02-01  0:32 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been reported by gogo tanaka.

----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809

* Author: gogo tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67921] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
  2015-02-01  0:32 ` [ruby-core:67919] [ruby-trunk - Misc #10809] [Open] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800] mail
@ 2015-02-01  3:14 ` nobu
  2015-02-01  3:15   ` [ruby-core:67922] unsubscribe David Smith
  2015-02-01  4:49 ` [ruby-core:67926] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800] mail
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 10+ messages in thread
From: nobu @ 2015-02-01  3:14 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by Nobuyoshi Nakada.


> ~~~diff
> +    assert_equal(1.0/0, Math.cbrt(1.0/0))
> ~~~

Isn't it better to use `assert_infinity`?

> ~~~diff
> +      def to_f
> +        _to_f
> +      end
> ~~~

Why not revert to the original methods?


----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51315

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67922] unsubscribe
  2015-02-01  3:14 ` [ruby-core:67921] [ruby-trunk - Misc #10809] " nobu
@ 2015-02-01  3:15   ` David Smith
  0 siblings, 0 replies; 10+ messages in thread
From: David Smith @ 2015-02-01  3:15 UTC (permalink / raw
  To: Ruby developers

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]



-- 
David Smith
djs070@gmail.com
0408 692 261

On 1 February 2015 at 2:14:46 pm, nobu@ruby-lang.org (nobu@ruby-lang.org) wrote:

Issue #10809 has been updated by Nobuyoshi Nakada.  


> ~~~diff  
> + assert_equal(1.0/0, Math.cbrt(1.0/0))  
> ~~~  

Isn't it better to use `assert_infinity`?  

> ~~~diff  
> + def to_f  
> + _to_f  
> + end  
> ~~~  

Why not revert to the original methods?  


----------------------------------------  
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]  
https://bugs.ruby-lang.org/issues/10809#change-51315  

* Author: kazuki tanaka  
* Status: Open  
* Priority: Normal  
* Assignee: Nobuyoshi Nakada  
----------------------------------------  
Hi! Here are two patches.  


## reorder_test_cbrt_and_add_a_assertion.patch:  
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)  

## add_test_for_math_c_about_overriding_Integer_to_f.patch:  

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and [Feature 10800](https://bugs.ruby-lang.org/issues/10800)  

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.  

thanks.  

---Files--------------------------------  
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)  
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)  


--  
https://bugs.ruby-lang.org/  

[-- Attachment #2: Type: text/html, Size: 2395 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67926] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
  2015-02-01  0:32 ` [ruby-core:67919] [ruby-trunk - Misc #10809] [Open] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800] mail
  2015-02-01  3:14 ` [ruby-core:67921] [ruby-trunk - Misc #10809] " nobu
@ 2015-02-01  4:49 ` mail
  2015-02-01  4:56 ` [ruby-core:67927] " mail
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mail @ 2015-02-01  4:49 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by kazuki tanaka.

File use_assert_infinity.patch added

> Isn't it better to use assert_infinity?

It's much better! I attached patch \bto follow what you said(not only `Math.cbrt` also other cases)

> Why not revert to the original methods?

I intended to revert to the original methods through this way.

The reason I revert is I don't wanna other cases is affected by this.

thanks.

----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51319

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67927] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-02-01  4:49 ` [ruby-core:67926] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800] mail
@ 2015-02-01  4:56 ` mail
  2015-02-01  6:32 ` [ruby-core:67928] " nobu
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mail @ 2015-02-01  4:56 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by kazuki tanaka.

File revert_to_original_methods.patch added

> Isn't it better to use assert_infinity?

It's much better! I attached patch \bto follow what you said(not only `Math.cbrt` also other cases)

> Why not revert to the original methods?

I intended to revert to the original methods through this way.

The reason I revert is I don't wanna other cases is affected by this.

thanks.

----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51320

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)
revert_to_original_methods.patch (1.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67928] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-02-01  4:56 ` [ruby-core:67927] " mail
@ 2015-02-01  6:32 ` nobu
  2015-02-01 12:41 ` [ruby-core:67932] " mail
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: nobu @ 2015-02-01  6:32 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by Nobuyoshi Nakada.


`class_eval` with a block form would be preferable to a string form in may cases.

Are you going to commit these patches by yourself?
If so, then ask matz, and follow the instruction [CommitterHowto](https://bugs.ruby-lang.org/projects/ruby/wiki/CommitterHowto)

----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51321

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)
revert_to_original_methods.patch (1.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67932] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2015-02-01  6:32 ` [ruby-core:67928] " nobu
@ 2015-02-01 12:41 ` mail
  2015-02-02  3:24 ` [ruby-core:67942] " matz
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mail @ 2015-02-01 12:41 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by kazuki tanaka.


It's my super great pleasure to be able to do that, I'm glad to and go to follow what you said.

But now I'm afraid of committing myself and I realize there'er much things I should know.

So it seems to take time.

Anyway, I wanna to do so. thanks.




----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51324

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)
revert_to_original_methods.patch (1.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:67942] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2015-02-01 12:41 ` [ruby-core:67932] " mail
@ 2015-02-02  3:24 ` matz
  2015-02-22  1:14 ` [ruby-core:68218] [Ruby trunk " mail
  2015-03-01  1:41 ` [ruby-core:68361] [Ruby trunk - Misc #10809] [Closed] " mail
  8 siblings, 0 replies; 10+ messages in thread
From: matz @ 2015-02-02  3:24 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by Yukihiro Matsumoto.


Commit bit approved.  Proceed to usual previledge grant process.

Matz.


----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51331

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)
revert_to_original_methods.patch (1.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:68218] [Ruby trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2015-02-02  3:24 ` [ruby-core:67942] " matz
@ 2015-02-22  1:14 ` mail
  2015-03-01  1:41 ` [ruby-core:68361] [Ruby trunk - Misc #10809] [Closed] " mail
  8 siblings, 0 replies; 10+ messages in thread
From: mail @ 2015-02-22  1:14 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by kazuki tanaka.

File add_test_about_overriding_Integer_to_f_20150222.patch added

I'll commit these 3 patches.

### reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

### use_assert_infinity.patch:
Use `assert_infinity ` instead of `assert_equal(1.0/0, ...)`

### add_test_about_overriding_Integer_to_f_20150222.patch:
Add tests for `Feature 10785` and `Feature 10800`

----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51580

* Author: kazuki tanaka
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)
revert_to_original_methods.patch (1.1 KB)
add_test_about_overriding_Integer_to_f_20150222.patch (1.31 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:68361] [Ruby trunk - Misc #10809] [Closed] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
       [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2015-02-22  1:14 ` [ruby-core:68218] [Ruby trunk " mail
@ 2015-03-01  1:41 ` mail
  8 siblings, 0 replies; 10+ messages in thread
From: mail @ 2015-03-01  1:41 UTC (permalink / raw
  To: ruby-core

Issue #10809 has been updated by gogo tanaka.

Status changed from Open to Closed

----------------------------------------
Misc #10809: [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
https://bugs.ruby-lang.org/issues/10809#change-51708

* Author: gogo tanaka
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Hi! Here are two patches.


## reorder_test_cbrt_and_add_a_assertion.patch:
Move Test#test_cbrt to more proper place and add a assertion for Math.cbrt(1.0/0)

## add_test_for_math_c_about_overriding_Integer_to_f.patch:

Add tests for [Feature 10785](https://bugs.ruby-lang.org/issues/10785) and  [Feature 10800](https://bugs.ruby-lang.org/issues/10800)

These two features are merged by Nobuyoshi Nakada san, so I assigned him but please feel free to reassigne.

thanks.

---Files--------------------------------
reorder_test_cbrt_and_add_a_assertion.patch (1.19 KB)
add_test_for_math_c_about_overriding_Integer_to_f.patch (1.36 KB)
use_assert_infinity.patch (2.53 KB)
revert_to_original_methods.patch (1.1 KB)
add_test_about_overriding_Integer_to_f_20150222.patch (1.31 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-01  1:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10809.20150201003240@ruby-lang.org>
2015-02-01  0:32 ` [ruby-core:67919] [ruby-trunk - Misc #10809] [Open] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800] mail
2015-02-01  3:14 ` [ruby-core:67921] [ruby-trunk - Misc #10809] " nobu
2015-02-01  3:15   ` [ruby-core:67922] unsubscribe David Smith
2015-02-01  4:49 ` [ruby-core:67926] [ruby-trunk - Misc #10809] [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800] mail
2015-02-01  4:56 ` [ruby-core:67927] " mail
2015-02-01  6:32 ` [ruby-core:67928] " nobu
2015-02-01 12:41 ` [ruby-core:67932] " mail
2015-02-02  3:24 ` [ruby-core:67942] " matz
2015-02-22  1:14 ` [ruby-core:68218] [Ruby trunk " mail
2015-03-01  1:41 ` [ruby-core:68361] [Ruby trunk - Misc #10809] [Closed] " mail

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).