-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string returns lead to Self-tests fail on Matlab #231
Comments
Maybe there is a change in 2019b about printing strings? On old Matlab,
Is that perhaps not the case in 2019b? Is that documented in their release notes? |
Maybe even earlier: somewhere between 2015 and 2018... |
Must be earlier. It's the same with R2019a. |
My guess is R2016b, when the string array object was introduced. Display needs to show the quote character to differentiate between char arrays and strings. |
As a lower bound, I'm pretty sure I was running the tests with 2017a at some point (on macOS). |
So how can we fix this? Imho, rather than fixing this in code, the tests should be fixed to print the same results in Matlab and Octave, like with What do you think? |
Actually I like this change. Maybe we should propose it for Octave too. Anyway, as @skycaptain suggests, we should use |
OK. I'll do a PR. |
I filed https://savannah.gnu.org/bugs/index.php?56973 upstream |
Actually, why does |
I think you meant doesn't pass, right? I left this out from the PR because of the assignment to |
Maybe I did. I think it would be ok to change it to I'll leave this open until we do that or similar. Are there any other failures on 2019b other than this and #234? |
|
Heh I cannot reproduce any of these on 2018b. |
re: shadow: some subtle precedence rules changed in 2019b so the comments in |
See Issue #231. Maybe not completely fixed. Not closing.
I'm using Matlab 2019b on MacOS. Running
doctest doctest
fails with:Matlab prints strings with apostrophs, Octave doesn't.
A way, which works with both Octave and Matlab is to use
disp
:disp(datestr(now, 'yyyy-mm-dd'))
.Also, - and I hope this is not just a case of Just on my machine - most of the tests running
make matlab_test
either fail or are not found. Some but not all are releated to this issue:The text was updated successfully, but these errors were encountered: