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

 
 

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

Submitted by:  Rafael Laboissiere <rlaboiss>
Submitted on:  Wed 16 Jan 2019 10:28:20 PM UTC  
 
Category:  Octave Forge 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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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 Laboissiere <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)
  •  

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

    Only project 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.5