Bump external/ikdasm to master.
[mono-project.git] / mono / tests / char-isnumber.cs
blobde69f4fe22d720e960d5c059fbf5c461bddfbe25
1 using System;
3 class T {
4 static int Main() {
5 char[] chars = new char[]
6 {'0', 'F', 'f', 'x', '1', 'n', 'a'};
7 bool[] results = new bool[]
8 {true, false, false, false, true, false, false};
10 for (int i = 0; i < chars.Length; ++i) {
11 if (Char.IsNumber (chars [i]) != results [i]) {
12 Console.WriteLine ("Char '{0}' failed", chars [i]);
13 return 1;
16 return 0;