bugGNU Octave - Bugs: bug #55213, assert no longer prints expression...

 
 

bug #55213: assert no longer prints expression that fails when it is not a variable

Submitter:  Rik <rik5>
Submitted:  Wed 12 Dec 2018 05:16:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  jwe
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Dec 2018 04:54:37 AM UTC, comment #2: 

Works great.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 13 Dec 2018 03:04:24 AM UTC, comment #1: 
John W. Eaton <jwe>
Group administrator
Wed 12 Dec 2018 05:16:47 PM UTC, original submission:  

After cset fc7b842daca1 the assert statement no longer prints the expression that fails if the expression is not a variable.

Here is a quick test case uploaded in the file tst_assert.m


%!test
%! assert (get (0, "DefaultLineLineStyle"), "abc")


Old Behavior:


octave:1> test tst_assert
***** test
 assert (get (0, "DefaultLineLineStyle"), "abc")
!!!!! test failed
ASSERT errors for:  assert (get (0, "DefaultLineLineStyle"),"abc")

  Location  |  Observed  |  Expected  |  Reason
     []           -           abc        Strings don't match


New Behavior:


octave:1> test tst_assert
***** test
 assert (get (0, "DefaultLineLineStyle"), "abc")
!!!!! test failed
ASSERT errors for:  assert (,)

  Location  |  Observed  |  Expected  |  Reason
     []           -           abc        Strings don't match
octave:2>



Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45635:  tst_assert.m added by rik5 (58B - text/x-matlab)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (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 group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-13 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-12-13 jwe StatusConfirmed Ready For Test
    2018-12-12 rik5 Attached File- Added tst_assert.m, #45635

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code