[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46239] MXE Octave: failure in BIST of text
From: |
Avinoam Kalma |
Subject: |
[Octave-bug-tracker] [bug #46239] MXE Octave: failure in BIST of text |
Date: |
Mon, 19 Oct 2015 20:44:32 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36 |
Follow-up Comment #3, bug #46239 (project octave):
Here are the relevant line from fntest.log. I see the error,
but I do not know which test caused this error:
>>>>> processing C:OctaveOctave-4.1.0+shareoctave4.1.0+mplotappearancetext.m
***** test
hf = figure ("visible", "off");
unwind_protect
## Single object with one line
h = text (0.5, 0.5, "single object with one line");
obs = get (h, "string");
assert (class (obs), "char");
assert (obs, "single object with one line");
## Single object with multiple lines
h = text (0.5, 0.3, ["char row 1"; "char row 2"]);
obs = get (h, "string");
assert (class (obs), "char");
assert (obs, ["char row 1"; "char row 2"]);
## Multiple objects with single line
h = text ([0.1, 0.1], [0.3, 0.4], "two objects with same string");
assert (class (get (h(1), "string")), "char");
assert (class (get (h(2), "string")), "char");
assert (get (h(1), "string"), "two objects with same string");
assert (get (h(2), "string"), "two objects with same string");
## Multiple objects with multiple lines
h = text ([0.7, 0.7], [0.3, 0.4], ["string1"; "string2"]);
assert (class (get (h(1), "string")), "char");
assert (class (get (h(2), "string")), "char");
assert (get (h(1), "string"), "string1");
assert (get (h(2), "string"), "string2");
### Tests repeated with cell input ###
clf;
## Single object with one line
h = text (0.5, 0.5, {"single object with one line"});
obs = get (h, "string");
assert (class (obs), "cell");
assert (obs, {"single object with one line"});
## Single object with multiple lines
h = text (0.5, 0.3, {"cell2str (1,1)", "cell2str (1,2)";
"cell2str (2,1)", "cell2str (2,2)"});
obs = get (h, "string");
assert (class (obs), "cell");
assert (obs, {"cell2str (1,1)"; "cell2str (2,1)";
"cell2str (1,2)"; "cell2str (2,2)"});
## Single object with multiple lines including empty cell
h = text (0.5, 0.9, {"Line1"; []; "Line3"});
obs = get (h, "string");
assert (class (obs), "cell");
assert (obs, {"Line1"; ""; "Line3"});
## Multiple objects with single line
h = text ([0.1, 0.1], [0.5, 0.6], {"two objects with same cellstr"});
assert (class (get (h(1), "string")), "cell");
assert (class (get (h(2), "string")), "cell");
assert (get (h(1), "string"), {"two objects with same cellstr"});
assert (get (h(2), "string"), {"two objects with same cellstr"});
## Multiple objects with same multi-line string which has empty cell
## NOTE: Matlab does not support this syntax
h = text ([0.7, 0.7], [0.3 0.5], {"Line1"; []; "Line3"});
assert (class (get (h(1), "string")), "cell");
assert (class (get (h(2), "string")), "cell");
assert (get (h(1), "string"), {"Line1"; ""; "Line3"});
assert (get (h(2), "string"), {"Line1"; ""; "Line3"});
## Multiple objects with multiple lines
h = text ([0.1, 0.1], [0.7, 0.8], {"cellstr1", "cellstr2"});
assert (class (get (h(1), "string")), "char");
assert (class (get (h(2), "string")), "char");
assert (get (h(1), "string"), "cellstr1");
assert (get (h(2), "string"), "cellstr2");
## Test special keyword processing
h = text (0.5, 0.5, "default");
assert (get (h, "string"), "default")
h = text (0.5, 0.5, "factory");
assert (get (h, "string"), "factory")
unwind_protect_cleanup
close (hf);
end_unwind_protect
!!!!! test failed
invalid conversion from real matrix to real scalar
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46239>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/