summaryrefslogtreecommitdiff
path: root/modules/string/tests/unit_tests/isalphanum.tst
blob: 91c57f470b0629098613bf8ac4a828aa8996d21e (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
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// =============================================================================
// 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 -->

//===============================
// unit tests isalphanum
//===============================
TXT = 'A1,B2,C3';
//===============================
if isalphanum(TXT) <> [ %T %T %F %T %T %F %T %T] then pause,end
//===============================
if isalphanum('') <> [] then pause,end
//===============================

if ~isalphanum('a') then pause,end
if ~isalphanum('b') then pause,end
if ~isalphanum('c') then pause,end
if ~isalphanum('d') then pause,end
if ~isalphanum('e') then pause,end
if ~isalphanum('f') then pause,end
if ~isalphanum('g') then pause,end
if ~isalphanum('h') then pause,end
if ~isalphanum('i') then pause,end
if ~isalphanum('j') then pause,end
if ~isalphanum('k') then pause,end
if ~isalphanum('l') then pause,end
if ~isalphanum('m') then pause,end
if ~isalphanum('n') then pause,end
if ~isalphanum('o') then pause,end
if ~isalphanum('p') then pause,end
if ~isalphanum('q') then pause,end
if ~isalphanum('r') then pause,end
if ~isalphanum('s') then pause,end
if ~isalphanum('t') then pause,end
if ~isalphanum('u') then pause,end
if ~isalphanum('v') then pause,end
if ~isalphanum('x') then pause,end
if ~isalphanum('y') then pause,end
if ~isalphanum('z') then pause,end
if ~isalphanum('A') then pause,end
if ~isalphanum('B') then pause,end
if ~isalphanum('C') then pause,end
if ~isalphanum('D') then pause,end
if ~isalphanum('E') then pause,end
if ~isalphanum('F') then pause,end
if ~isalphanum('G') then pause,end
if ~isalphanum('H') then pause,end
if ~isalphanum('I') then pause,end
if ~isalphanum('J') then pause,end
if ~isalphanum('K') then pause,end
if ~isalphanum('L') then pause,end
if ~isalphanum('M') then pause,end
if ~isalphanum('O') then pause,end
if ~isalphanum('P') then pause,end
if ~isalphanum('Q') then pause,end
if ~isalphanum('R') then pause,end
if ~isalphanum('S') then pause,end
if ~isalphanum('T') then pause,end
if ~isalphanum('U') then pause,end
if ~isalphanum('V') then pause,end
if ~isalphanum('X') then pause,end
if ~isalphanum('Y') then pause,end
if ~isalphanum('Z') then pause,end

if ~isalphanum('1') then pause,end
if ~isalphanum('2') then pause,end
if ~isalphanum('3') then pause,end
if ~isalphanum('4') then pause,end
if ~isalphanum('5') then pause,end
if ~isalphanum('6') then pause,end
if ~isalphanum('7') then pause,end
if ~isalphanum('8') then pause,end
if ~isalphanum('9') then pause,end

if isalphanum('!') then pause,end
if isalphanum('#') then pause,end
if isalphanum('$') then pause,end
if isalphanum('%') then pause,end
if isalphanum('&') then pause,end
if isalphanum('(') then pause,end
if isalphanum(')') then pause,end
if isalphanum('*') then pause,end
if isalphanum('+') then pause,end
if isalphanum(',') then pause,end
if isalphanum('-') then pause,end
if isalphanum('.') then pause,end
if isalphanum('/') then pause,end
if isalphanum(':') then pause,end
if isalphanum(';') then pause,end
if isalphanum('<') then pause,end
if isalphanum('=') then pause,end
if isalphanum('>') then pause,end
if isalphanum('@') then pause,end
if isalphanum('[') then pause,end
if isalphanum('\') then pause,end
if isalphanum(']') then pause,end
if isalphanum('^') then pause,end
if isalphanum('_') then pause,end
if isalphanum('`') then pause,end
if isalphanum('{') then pause,end
if isalphanum('|') then pause,end
if isalphanum('}') then pause,end
if isalphanum('~') then pause,end