rem0x10001 test file added
authorcacao <none@none>
Wed, 7 Oct 1998 22:07:18 +0000 (22:07 +0000)
committercacao <none@none>
Wed, 7 Oct 1998 22:07:18 +0000 (22:07 +0000)
tests/remtest.java [new file with mode: 0644]

diff --git a/tests/remtest.java b/tests/remtest.java
new file mode 100644 (file)
index 0000000..b2190ce
--- /dev/null
@@ -0,0 +1,24 @@
+
+// Zahlen summieren, Java Version
+
+public class remtest {
+
+
+       static public int rem(int i, int j) {
+               return i % j;
+               }
+
+
+       static public void main(String [] arg) {
+
+               int i;
+
+               for (i = -1; i != 0; i--) {
+                       if ((i % 0x10001) != rem(i, 0x10001)) {
+                               System.out.println ("Error: " + i);
+                               }
+                       }
+
+               System.out.println ("OK");
+               }
+       }