[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[forge] multiples private strsplit.m
From: |
Marco Atzeri |
Subject: |
[forge] multiples private strsplit.m |
Date: |
Sat, 20 Jun 2015 08:19:04 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Hi,
running tests for most forge package m-files, that I am packaging
for cygwin, I noticed that there are some old copy of strsplit.m around
/usr/share/octave/packages/cgi-0.1.0/@cgi/private/strsplit.m
/usr/share/octave/packages/dataframe-1.1.0/@dataframe/private/strsplit.m
/usr/share/octave/packages/miscellaneous-1.2.1/private/strsplit.m
that have at least a problem in the test area
+ pkg ('load', 'cgi')
+ test ('/usr/share/octave/packages/cgi-0.1.0/@cgi/private/strsplit.m')
***** assert (strsplit ("road to^hell", " ^"), {"road", "to", "hell"})
!!!!! test failed
ASSERT errors for: assert (strsplit ("road to^hell", " ^"),{"road",
"to", "hell"})
Location | Observed | Expected | Reason
. O(1x1) E(1x3) Dimensions don't match
+ pkg ('unload', 'all')
+ endscript;
Questions:
- any specific reason to maintain this private function in the
packages ?
If I understood correctly private functions are only used if
octave itself do not provide them.
- it was ever used the form
strsplit ("road to^hell", " ^")
instead of
strsplit ("road to^hell", {" ","^"})
for what I see the three package do not use it.
Regards
Marco
- [forge] multiples private strsplit.m,
Marco Atzeri <=