matio-1.5.30/test/matlab/test_write_char_utf8_1d.m
raw| 1 | try |
| 2 | load test_write_char_utf8_1d.mat |
| 3 | expdata = uint8([216,168,216,172,217,132,219,140,196,145,105,225,187,135,110])'; |
| 4 | expdata = native2unicode(expdata, 'UTF-8'); |
| 5 | pass = true; |
| 6 | pass = pass && isequal(expdata,a); |
| 7 | catch me |
| 8 | pass = false; |
| 9 | end |
| 10 | if pass |
| 11 | fprintf('PASSED\n'); |
| 12 | else |
| 13 | fprintf('FAILED\n'); |
| 14 | end |
| 15 | exit; |