bugGNU Octave - Bugs: bug #55494, [octave forge] (bim) Unit test in...

 
 

bug #55494: [octave forge] (bim) Unit test in bim1c_norm.m fails randomly

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Wed 16 Jan 2019 10:28:20 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * other Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 16 Jan 2019 10:28:20 PM UTC, original submission:  

The first unit test in file bim1c_norm.m fails randomly.  This is the recipe for triggering the bug:


octave:1> pkg load bim
octave:2> while 1
 L = rand (1); V = rand (1); m = linspace (0,1,5).^2;  m *= L;
 u    = V * ones (size (m))';
 uinf = bim1c_norm (m, u, 'inf');
 uL2  = bim1c_norm (m, u, 'L2');
 uH1  = bim1c_norm (m, u, 'H1');
 assert ([uinf, uL2, uH1], [V, V*sqrt(L), V*sqrt(L)], 1e-12);
endwhile
error: ASSERT errors for:  assert ([uinf, uL2, uH1],[V, V * sqrt(L), V * sqrt(L)],1e-12)

  Location  |  Observed  |  Expected  |  Reason
    (3)        0.051682     0.051682     Abs err 4.7937e-12 exceeds tol 1e-12 by 4e-12


The patch attached to this bug report fixes the problem.

Rafael Laboissière <rlaboiss>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45988:  xtest-in-bim1c_norm.patch added by rlaboiss (445B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rlaboiss (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-16 rlaboiss Attached File- Added xtest-in-bim1c_norm.patch, #45988

    Back to the top

    Powered by Savane 3.13-58d6.
    Corresponding source code