bugLiberty Eiffel - Bugs: bug #40073, TEST_CONVERSION1 meaning

 
 

bug #40073: TEST_CONVERSION1 meaning

Submitted by:  Paolo Redaelli <Tybor>
Submitted on:  Fri 20 Sep 2013 02:56:49 PM UTC  
 
Category: ETSeverity: 3 - Normal
Priority: 5 - NormalStatus: Need Info
Assigned to: Paolo Redaelli <Tybor>Open/Closed: Open
Release: NoneFixed Release: None
Planned Release: adler

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 24 Sep 2013 10:54:20 AM UTC, comment #1:

Usually in such a case I replace ANY by ABSTRACT_STRING.

Cyril Adrian <cadrian>
Project Administrator
Fri 20 Sep 2013 02:56:49 PM UTC, original submission:

The meaning of test class TEST_CONVERSION1 is quite foggy to me....

https://github.com/LibertyEiffel/Liberty/blob/master/test/lib/numeric/integer/test_conversion1.e

What's the purpose of such a class? It's like this at least since 2007...

class TEST_CONVERSION1

create {}
make

feature {ANY}
make is
do
---- Original:
-- conv(1);
-- New:
conv("toto")
end

conv (x: ANY) is
do
end

assert (b: BOOLEAN) is
do
cpt := cpt + 1
if not b then
std_output.put_string("TEST_INTEGER: ERROR Test # ")
std_output.put_integer(cpt)
std_output.put_string("%N")
end
end

cpt: INTEGER

end -- class TEST_CONVERSION1

Paolo Redaelli <Tybor>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by Tybor (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup