1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
// ============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - DIGITEO - Allan CORNET
//
// This file is distributed under the same license as the Scilab package.
// ============================================================================
// <-- JVM NOT MANDATORY -->
// <-- Non-regression test for bug 3433 -->
//
// <-- Bugzilla URL -->
// http://bugzilla.scilab.org/show_bug.cgi?id=4141
//
// Short description:
// length returns a incorrect size
//==============================================================
tab_ref = [
"世界您好",
"азеазея",
"ハロー・ワールド",
"เฮลโลเวิลด์",
"حريات وحقوق",
"תוכנית"];
length_ref = [
4,
7,
8,
11,
11,
6];
for i = 1:size(tab_ref,'*')
if ( length(tab_ref(i)) <> length_ref(i) ) then bugmes();quit;end
end
tab_ref = [
"世界您好",
"азеазея",
"ハロー・ワールド",
"תוכנית"];
ref = [
'世' ,
'а' ,
'ハ' ,
'ת' ];
for i = 1:size(tab_ref,'*')
r = part(tab_ref(i),1);
if r <> ref(i) then bugmes();quit;end
end
if part("世界您好",3:4) <> '您好' then bugmes();quit;end
|