[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52647] missing function: erase (introduced Ma
From: |
Sahil Yadav |
Subject: |
[Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b) |
Date: |
Tue, 26 Dec 2017 06:09:01 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36 |
Follow-up Comment #19, bug #52647 (project octave):
If somehow, we are not able to address the case highlighted by Doug, we can
switch to this version (due thanks to Andy and Doug) of ours which is slightly
more faster than this <https://savannah.gnu.org/bugs/?52647#comment11>
version.
But there's a problem with this. Test cases on lines 173,175, the erase
function returns sq_string of size 0x0 and we expect it to be null_sq_string
('') . Also, one of the test cases written by Rik is wrong according to me
%!assert (erase ("Hello World!", {"o"; "World"; " "}), "Hell!")
The expected string should be "HellWrld!" instead.
All other considerations pointed by Rik in coding style have been included in
this code (using STR and MATCH instead of STR1 and STR2 resp.)
(file #42732)
_______________________________________________________
Additional Item Attachment:
File name: erase.m Size:5 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52647>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), (continued)
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Sahil Yadav, 2017/12/21
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/21
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Sahil Yadav, 2017/12/22
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/26
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b),
Sahil Yadav <=
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/26
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/26
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/27
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/27