[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63293] assert skips sparseness comparison if
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #63293] assert skips sparseness comparison if a tolerance is specified |
Date: |
Sun, 30 Oct 2022 07:47:12 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?63293>
Summary: assert skips sparseness comparison if a tolerance is
specified
Project: GNU Octave
Submitter: nrjank
Submitted: Sun 30 Oct 2022 07:47:10 AM EDT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Missed Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 30 Oct 2022 07:47:10 AM EDT By: Nicholas Jankowski <nrjank>
see below:
>> assert([1 2 3],[1 2 3])
>> assert([1 2 3],[1 2 3],eps)
>> assert(sparse([1 2 3]),[1 2 3])
error: ASSERT errors for: assert (sparse ([1, 2, 3]),[1, 2, 3])
Location | Observed | Expected | Reason
() O E sparse != non-sparse
>> assert([1 2 3],sparse([1 2 3]))
error: ASSERT errors for: assert ([1, 2, 3],sparse ([1, 2, 3]))
Location | Observed | Expected | Reason
() O E non-sparse != sparse
>> assert(sparse([1 2 3]),sparse([1 2 3]))
>> assert(sparse([1 2 3]),[1 2 3],eps)
>> assert([1 2 3],sparse([1 2 3]),eps)
I would expect the last two tests to fail as well.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63293>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63293] assert skips sparseness comparison if a tolerance is specified,
Nicholas Jankowski <=