summaryrefslogtreecommitdiff
path: root/modules/string/tests/unit_tests/strchr.tst
blob: 2fe8902714cbcc02c9606739369cb0f6908e2b47 (plain)
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
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2007-2008 - INRIA
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================

// <-- CLI SHELL MODE -->

//===============================
if strchr('Scilab','l') <> 'lab' then pause,end
//===============================
if strchr('Scilab',' ')<> '' then pause,end
//===============================
STR = 'Scilab string module';
STR_MAT = [STR,STR;STR,STR];
if strchr(STR_MAT,'l') <> ['lab string module','lab string module';'lab string module','lab string module'] then pause,end
//===============================
REF = ['le','string module';'ring module','ab string module'];
if strchr(STR_MAT,['l','s';'r','a']) <> REF then pause,end
//===============================
STR_MAT = ["STR1","STR2";"STR3","STR4"];
if strchr(STR_MAT,["1","2";"3","4"]) <> ["1","2";"3","4"] then pause,end
//===============================