File: bug_4768.dia.ref

package info (click to toggle)
scilab 5.3.3-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 330,656 kB
file content (56 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
// =============================================================================
// 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 4768 -->
//
// <-- Bugzilla URL -->
// http://bugzilla.scilab.org/show_bug.cgi?id=4768
//
// <-- Short Description -->
//strsplit does not work with localized characters
//======================================================================================== 
v = "世界您好";
ref_res1 = ["世";"界您好"];
ref_res3 = ["世界您";"好"];
r = strsplit(v,1)
 r  =
 
!世        !
!           !
!界您好  !
if r <> ref_res1 then bugmes();quit;end
r = strsplit(v,3)
 r  =
 
!世界您  !
!           !
!好        !
if r <> ref_res3 then bugmes();quit;end
//======================================================================================== 
v = "азеазея";
ref_res1 = ["а";"зеазея"]
 ref_res1  =
 
!а            !
!              !
!зеазея  !
ref_res3 = ["азе";"азея"];
r = strsplit(v,1)
 r  =
 
!а            !
!              !
!зеазея  !
if r <> ref_res1 then bugmes();quit;end
r = strsplit(v,3)
 r  =
 
!азе    !
!          !
!азея  !
if r <> ref_res3 then bugmes();quit;end
//========================================================================================