I fixed the 8 spaces, they are all tabs now.
I used SVN diff, and read the patch to make sure it was okay.
I compiled it fine, so no missing semicolons.
Index: Kernel/Tests/CS/Array.cs
===================================================================
--- Kernel/Tests/CS/Array.cs (revision 744)
+++ Kernel/Tests/CS/Array.cs (working copy)
@@ -38,6 +38,109 @@
}
/// <summary>
+ /// int[][] read/write
+ /// </summary>
+ public static uint CMPIntJaggedArray ()
+ {
+ int [][] arr = new int [3][];
+
+ arr [0] = new int [5];
+ arr [1] = new int [3];
+ arr [2] = new int [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 1009;
+ arr[0][3] = -22;
+ arr[0][4] = 1;
+
+ arr[1][0] = 88887;
+ arr[1][1] = -987788;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = arr[0][0]*arr[2][0];
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 1009)
+ return 0;
+
+ if (arr[0][3] != -22)
+ return 0;
+
+ if (arr[0][4] != 1)
+ return 0;
+
+
+
+ if (arr[1][0] != 88887)
+ return 0;
+
+ if (arr[1][1] != -987788)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
+ /// int[,] read/write
+ /// </summary>
+ public static uint CMPIntMultidimentionalArray ()
+ {
+ int [,] arr = new int [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 88887;
+ arr[1,1] = -987788;
+
+ arr[2,0] = 6;
+ arr[2,1] = arr[0,0]*arr[2,0];
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 88887)
+ return 0;
+
+ if (arr[1,1] != -987788)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+
+
+ /// <summary>
/// short[] read/write
/// </summary>
public static uint CMPShortArray ()
@@ -61,6 +164,107 @@
}
/// <summary>
+ /// Short[][] read/write
+ /// </summary>
+ public static uint CMPShortJaggedArray ()
+ {
+ short [][] arr = new short [3][];
+
+ arr [0] = new short [5];
+ arr [1] = new short [3];
+ arr [2] = new short [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 1009;
+ arr[0][3] = -22;
+ arr[0][4] = 1;
+
+ arr[1][0] = 667;
+ arr[1][1] = -876;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = 39*6;
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 1009)
+ return 0;
+
+ if (arr[0][3] != -22)
+ return 0;
+
+ if (arr[0][4] != 1)
+ return 0;
+
+
+
+ if (arr[1][0] != 667)
+ return 0;
+
+ if (arr[1][1] != -876)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
+ /// short[,] read/write
+ /// </summary>
+ public static uint CMPShortMultidimentionalArray ()
+ {
+ short [,] arr = new short [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 667;
+ arr[1,1] = -876;
+
+ arr[2,0] = 6;
+ arr[2,1] = (short)(arr[0,0]*arr[2,0]);
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 667)
+ return 0;
+
+ if (arr[1,1] != -876)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
/// byte[] read/write
/// </summary>
public static uint CMPByteArray ()
@@ -82,10 +286,111 @@
return 1;
}
+
+ /// <summary>
+ /// Byte[][] read/write
+ /// </summary>
+ public static uint CMPByteJaggedArray ()
+ {
+ byte [][] arr = new byte [3][];
+ arr [0] = new byte [5];
+ arr [1] = new byte [3];
+ arr [2] = new byte [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 76;
+ arr[0][3] = 22;
+ arr[0][4] = 1;
+
+ arr[1][0] = 99;
+ arr[1][1] = 87;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = (byte)(arr[0][0]*arr[2][0]);
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 76)
+ return 0;
+
+ if (arr[0][3] != 22)
+ return 0;
+
+ if (arr[0][4] != 1)
+ return 0;
+
+
+
+ if (arr[1][0] != 99)
+ return 0;
+
+ if (arr[1][1] != 87)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+
/// <summary>
- /// int[] read/write
+ /// byte[,] read/write
/// </summary>
+ public static uint CMPByteMultidimentionalArray ()
+ {
+ byte [,] arr = new byte [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 123;
+ arr[1,1] = 24;
+
+ arr[2,0] = 6;
+ arr[2,1] = (byte)(arr[0,0]*arr[2,0]);
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 123)
+ return 0;
+
+ if (arr[1,1] != 24)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+ /// <summary>
+ /// Long[] read/write
+ /// </summary>
public static uint CMPLongArray ()
{
long [] arr = new long [3];
@@ -105,6 +410,107 @@
return 1;
}
+
+ /// <summary>
+ /// long[][] read/write
+ /// </summary>
+ public static uint CMPLongJaggedArray ()
+ {
+ long [][] arr = new long [3][];
+
+ arr [0] = new long [5];
+ arr [1] = new long [3];
+ arr [2] = new long [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 1009;
+ arr[0][3] = -22;
+ arr[0][4] = 1;
+
+ arr[1][0] = 88887;
+ arr[1][1] = -987788;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = arr[0][0]*arr[2][0];
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 1009)
+ return 0;
+
+ if (arr[0][3] != -22)
+ return 0;
+
+ if (arr[0][4] != 1)
+ return 0;
+
+
+
+ if (arr[1][0] != 88887)
+ return 0;
+
+ if (arr[1][1] != -987788)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
+ /// long[,] read/write
+ /// </summary>
+ public static uint CMPLongMultidimentionalArray ()
+ {
+ long [,] arr = new long [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 88887;
+ arr[1,1] = -987788;
+
+ arr[2,0] = 6;
+ arr[2,1] = arr[0,0]*arr[2,0];
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 88887)
+ return 0;
+
+ if (arr[1,1] != -987788)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
///////////////////
/// <summary>
@@ -131,11 +537,112 @@
}
/// <summary>
+ /// uint[][] read/write
+ /// </summary>
+ public static uint CMPUIntJaggedArray ()
+ {
+ uint [][] arr = new uint [3][];
+
+ arr [0] = new uint [5];
+ arr [1] = new uint [3];
+ arr [2] = new uint [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 76;
+ arr[0][3] = 22;
+ arr[0][4] = 4294967294;
+
+ arr[1][0] = 99;
+ arr[1][1] = 87;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = arr[0][0]*arr[2][0];
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 76)
+ return 0;
+
+ if (arr[0][3] != 22)
+ return 0;
+
+ if (arr[0][4] != 4294967294)
+ return 0;
+
+
+
+ if (arr[1][0] != 99)
+ return 0;
+
+ if (arr[1][1] != 87)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
+ /// uint[,] read/write
+ /// </summary>
+ public static uint CMPUIntMultidimentionalArray ()
+ {
+ uint [,] arr = new uint [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 123;
+ arr[1,1] = 24;
+
+ arr[2,0] = 6;
+ arr[2,1] = arr[0,0]*arr[2,0];
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 123)
+ return 0;
+
+ if (arr[1,1] != 24)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
/// ushort[] read/write
/// </summary>
public static uint CMPUShortArray ()
{
- short [] arr = new short [3];
+ ushort [] arr = new ushort [3];
arr [0] = 7;
arr [1] = 9;
@@ -154,6 +661,106 @@
}
/// <summary>
+ /// ushort[][] read/write
+ /// </summary>
+ public static uint CMPUShortJaggedArray ()
+ {
+ ushort [][] arr = new ushort [3][];
+
+ arr [0] = new ushort [5];
+ arr [1] = new ushort [3];
+ arr [2] = new ushort [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 76;
+ arr[0][3] = 22;
+ arr[0][4] = 1;
+
+ arr[1][0] = 99;
+ arr[1][1] = 87;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = (ushort)(arr[0][0]*arr[2][0]);
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 76)
+ return 0;
+
+ if (arr[0][3] != 22)
+ return 0;
+
+ if (arr[0][4] != 1)
+ return 0;
+
+
+
+ if (arr[1][0] != 99)
+ return 0;
+
+ if (arr[1][1] != 87)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+ /// <summary>
+ /// ushort[,] read/write
+ /// </summary>
+ public static uint CMPUShortMultidimentionalArray ()
+ {
+ ushort [,] arr = new ushort [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 123;
+ arr[1,1] = 24;
+
+ arr[2,0] = 6;
+ arr[2,1] = (ushort)(arr[0,0]*arr[2,0]);
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 123)
+ return 0;
+
+ if (arr[1,1] != 24)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
/// sbyte[] read/write
/// </summary>
public static uint CMPSByteArray ()
@@ -175,8 +782,108 @@
return 1;
}
+ /// <summary>
+ /// sbyte[][] read/write
+ /// </summary>
+ public static uint CMPSByteJaggedArray ()
+ {
+ sbyte [][] arr = new sbyte [3][];
+ arr [0] = new sbyte [5];
+ arr [1] = new sbyte [3];
+ arr [2] = new sbyte [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 76;
+ arr[0][3] = 22;
+ arr[0][4] = 1;
+
+ arr[1][0] = 99;
+ arr[1][1] = 87;
+ arr[1][2] = 0;
+
+ arr[2][0] = 2;
+ arr[2][1] = (sbyte)(arr[0][0]*arr[2][0]);
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 76)
+ return 0;
+
+ if (arr[0][3] != 22)
+ return 0;
+
+ if (arr[0][4] != 1)
+ return 0;
+
+
+
+ if (arr[1][0] != 99)
+ return 0;
+
+ if (arr[1][1] != 87)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 2)
+ return 0;
+
+ if (arr[2][1] != 39*2)
+ return 0;
+
+ return 1;
+ }
+
+
/// <summary>
+ /// sbyte[,] read/write
+ /// </summary>
+ public static uint CMPSByteMultidimentionalArray ()
+ {
+ sbyte [,] arr = new sbyte [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 123;
+ arr[1,1] = 24;
+
+ arr[2,0] = 2;
+ arr[2,1] = (sbyte)(arr[0,0]*arr[2,0]);
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 123)
+ return 0;
+
+ if (arr[1,1] != 24)
+ return 0;
+
+
+
+ if (arr[2,0] != 2)
+ return 0;
+
+ if (arr[2,1] != 39*2)
+ return 0;
+
+ return 1;
+ }
+ /// <summary>
/// ulong[] read/write
/// </summary>
public static uint CMPULongArray ()
@@ -200,6 +907,107 @@
}
/// <summary>
+ /// ulong[][] read/write
+ /// </summary>
+ public static uint CMPULongJaggedArray ()
+ {
+ ulong [][] arr = new ulong [3][];
+
+ arr [0] = new ulong [5];
+ arr [1] = new ulong [3];
+ arr [2] = new ulong [2];
+
+ arr[0][0] = 39;
+ arr[0][1] = 7;
+ arr[0][2] = 76;
+ arr[0][3] = 22;
+ arr[0][4] = 4294967294;
+
+ arr[1][0] = 99;
+ arr[1][1] = 87;
+ arr[1][2] = 0;
+
+ arr[2][0] = 6;
+ arr[2][1] = arr[0][0]*arr[2][0];
+
+ if (arr[0][0] != 39)
+ return 0;
+
+ if (arr[0][1] != 7)
+ return 0;
+
+ if (arr[0][2] != 76)
+ return 0;
+
+ if (arr[0][3] != 22)
+ return 0;
+
+ if (arr[0][4] != 4294967294)
+ return 0;
+
+
+
+ if (arr[1][0] != 99)
+ return 0;
+
+ if (arr[1][1] != 87)
+ return 0;
+
+ if (arr[1][2] != 0)
+ return 0;
+
+
+ if (arr[2][0] != 6)
+ return 0;
+
+ if (arr[2][1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
+ /// ulong[,] read/write
+ /// </summary>
+ public static uint CMPULongMultidimentionalArray ()
+ {
+ ulong [,] arr = new ulong [3,2];
+
+ arr[0,0] = 39;
+ arr[0,1] = 7;
+
+ arr[1,0] = 123;
+ arr[1,1] = 24;
+
+ arr[2,0] = 6;
+ arr[2,1] = arr[0,0]*arr[2,0];
+
+ if (arr[0,0] != 39)
+ return 0;
+
+ if (arr[0,1] != 7)
+ return 0;
+
+
+
+ if (arr[1,0] != 123)
+ return 0;
+
+ if (arr[1,1] != 24)
+ return 0;
+
+
+
+ if (arr[2,0] != 6)
+ return 0;
+
+ if (arr[2,1] != 39*6)
+ return 0;
+
+ return 1;
+ }
+
+ /// <summary>
/// int[].Length
/// </summary>
public static uint CMPIntArrayLength ()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers