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:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Release: 
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 29 May 2025 01:01:46 PM UTC, comment #1: 

Hi,
I just increased the tolerance for the test, this now seems to be working more consistently.

https://github.com/carlodefalco/bim/commit/5a615c0081609bda5172c09b0f6fc3d53d688111

Thanks,
c.

Carlo de Falco <cdf>
Group Member
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 cdf (Posted a comment)
  • -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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-05-29 cdf StatusNone Fixed
        Open/ClosedOpen Closed
    2019-01-16 rlaboiss Attached File- Added xtest-in-bim1c_norm.patch, #45988

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code