Jonas Maebe преди 23 години
родител
ревизия
b37a790e31
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      tests/test/cg/tmoddiv.pp

+ 6 - 6
tests/test/cg/tmoddiv.pp

@@ -253,8 +253,8 @@ begin
   int64res := $7FFFFFFF shl 32;
   int64cnt := $80000000 shl 32;
   int64res := int64cnt div int64res;
-  Write('Value should be 1...');
-  test(int64res and $FFFFFFFF, 1);
+  Write('Value should be -1...');
+  test(int64res and $FFFFFFFF, -1);
 
   int64res := $7FFFFFFF;
   int64cnt := $80000000;
@@ -299,8 +299,8 @@ begin
   int64res := 10101010;
   int64cnt := -13;
   int64res := int64res mod int64cnt;
-  Write('Value should be 10...');
-  test(int64res and $FFFFFFFF, 10);
+  Write('Value should be -10...');
+  test(int64res and $FFFFFFFF, -10);
 
   WriteLn('(left) : LOC_REFERENCE; (right) : LOC_REGISTER');
   { RIGHT : LOC_REGISTER       }
@@ -314,8 +314,8 @@ begin
   { LEFT : LOC_REFERENCE       }
   int64res := -1111111;
   int64res := int64res mod getint64cnt;
-  Write('Value should be -1...');
-  test(int64res and $FFFFFFFF, -1);
+  Write('Value should be 1...');
+  test(int64res and $FFFFFFFF, 1);
 
   { RIGHT : LOC_REFERENCE }
   { LEFT : LOC_REGISTER   }