Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Missing test.

svn path=/trunk/mono/; revision=2561
  • Loading branch information...
commit 03948a83ea9e4b40d3fab6f578b0cbf398b99884 1 parent 8200b02
@illupus illupus authored
Showing with 23 additions and 0 deletions.
  1. +1 −0  mono/tests/Makefile.am
  2. +22 −0 mono/tests/bitconverter.cs
View
1  mono/tests/Makefile.am
@@ -18,6 +18,7 @@ TESTSRC= \
switch.cs \
outparm.cs \
delegate.cs \
+ bitconverter.cs \
exception.cs \
exception2.cs \
exception3.cs \
View
22 mono/tests/bitconverter.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace Test {
+
+ public class Test {
+ public static int Main() {
+ byte[] rep;
+ double d = 5.0;
+
+ rep = BitConverter.GetBytes (d);
+ double res = BitConverter.ToDouble (rep, 0);
+#if DEBUG
+ Console.WriteLine ("{0} {1} {2} {3} {4} {5} {6} {7}",
+ rep [0], rep [1], rep [2], rep [3], rep [4],
+ rep [5], rep [6], rep [7]);
+#endif
+ if (d != res)
+ return 1;
+ return 0;
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.