patchGNU Octave - Patches: patch #8273, functions needing tests

 
 

patch #8273: functions needing tests

Submitter:  Mike Sander <msander>
Submitted:  Tue 14 Jan 2014 02:13:10 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Nov 2014 04:10:21 PM UTC, comment #4: 

The four internal functions (prefixed with '__') in the testfun directory had an 'assert (1)' added in cset 702aa79dc482, so I'm marking this as a duplicate and closing the patch.

Rik <rik5>
Group administrator
Tue 14 Jan 2014 04:02:24 AM UTC, comment #3: 

try 2.  this only includes scripts/testfun/ changes. untested_functions_patch02.diff

(file #30269)

Mike Sander <msander>
Tue 14 Jan 2014 03:08:02 AM UTC, comment #2: 

ok regarding the single line test.

yeah,  i screwed up with hg for display. i did not intend to include those changes yet.  i was trying to outline (for myself) some tests to write.

i did the commit from within scripts/testfun/.  i was not expecting the display changes to be included.  hg noob.   i guess i should have asked for advice. 



Mike Sander <msander>
Tue 14 Jan 2014 02:45:24 AM UTC, comment #1: 

What are the tests that you added to display.m supposed to be testing?  I don't see how they test the display function.

Instead of writing


%!test
%! assert (1)


please write


%!assert (1)


as that is an equivalent one-line test and is consistent with what is used in other internal functions to mark them as not needing a separate set of tests.


John W. Eaton <jwe>
Group administrator
Tue 14 Jan 2014 02:13:10 AM UTC, original submission:  

i checked on irc.  they recommended to submit here vs bug tracker.

this patch adds:
1 empty tests in scripts/testfun/
2 some initial tests in general/display.m


is it possible to keep this item open?  i intend to submit more patches as i add tests for other untested functions.

Mike Sander <msander>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by msander (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-05 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2014-01-14 msander Attached File- Added untested_functions_patch02.diff, #30269
    2014-01-14 msander Attached File- Added untested_functions_patch01.diff, #30268

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code