From octave-sources-request at bevo dot che dot wisc dot edu Thu Nov 9 10:04:57 2000 Subject: Buglet in deblank.m in matcompat / signalpak From: Teemu Ikonen To: Date: Thu, 9 Nov 2000 18:04:54 +0200 (EET) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime at docserver dot cac dot washington dot edu for more info. --0-613888237-973785815=:27490 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: deblank.m in Matcompat and signalPAK collections fails its own tests: octave:12> test("deblank") ***** assert (deblank(" "), ""); !!!!! test failed assert expected but got Attached is a patch which fixes this. Teemu --0-613888237-973785815=:27490 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="deblank.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="deblank.patch" KioqIGRlYmxhbmsubS1vcmlnCVRodSBKdW4gMTUgMDg6Mjk6NTQgMjAwMA0K LS0tIGRlYmxhbmsubQlUaHUgTm92ICA5IDE3OjU1OjM1IDIwMDANCioqKioq KioqKioqKioqKg0KKioqIDQ3LDUzICoqKioNCiAgICAgICAgdCA9IHNldHN0 cihbMCAxXSk7DQogICAgICAgIGsgPSBmaW5kIChzICE9ICIgIiAmIHMgIT0g dCAoMSkpOw0KICAgICAgICBpZiBpc2VtcHR5IChrKQ0KISAJdCA9IHMgKDos IDE6MCk7DQogICAgICAgIGVsc2UNCiAgCXQgPSBzICg6LCAxIDogY2VpbCAo bWF4IChrKSAvIG5yKSk7DQogICAgICAgIGVuZGlmDQotLS0gNDcsNTMgLS0t LQ0KICAgICAgICB0ID0gc2V0c3RyKFswIDFdKTsNCiAgICAgICAgayA9IGZp bmQgKHMgIT0gIiAiICYgcyAhPSB0ICgxKSk7DQogICAgICAgIGlmIGlzZW1w dHkgKGspDQohICAgICAgICAgdCA9ICIiOw0KICAgICAgICBlbHNlDQogIAl0 ID0gcyAoOiwgMSA6IGNlaWwgKG1heCAoaykgLyBucikpOw0KICAgICAgICBl bmRpZg0K --0-613888237-973785815=:27490-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------