Forráskód Böngészése

+ added more specific tests

carl 24 éve
szülő
commit
360d9afd72
1 módosított fájl, 19 hozzáadás és 2 törlés
  1. 19 2
      tests/test/cg/tmoddiv.pp

+ 19 - 2
tests/test/cg/tmoddiv.pp

@@ -164,6 +164,15 @@ begin
   else
   else
     WriteLn('Failure.');
     WriteLn('Failure.');
 
 
+  Writeln('special numeric values tests...');
+  cardinalcnt := $80000;
+  cardinalres := $12345;
+  cardinalres := cardinalcnt div cardinalres;
+  Write('Value should be 7...');
+  if cardinalres = 7 then
+    WriteLn('Success.')
+  else
+    WriteLn('Failure.');
 
 
 {$IFDEF FPC}
 {$IFDEF FPC}
   WriteLn('------------------- CARDINAL -----------------------');
   WriteLn('------------------- CARDINAL -----------------------');
@@ -188,6 +197,16 @@ begin
   else
   else
     WriteLn('Failure.');
     WriteLn('Failure.');
 
 
+  Writeln('special numeric values tests...');
+  cardinalcnt := $80000;
+  cardinalres := $12345;
+  cardinalres := cardinalcnt div cardinalres;
+  Write('Value should be 7...');
+  if cardinalres = 7 then
+    WriteLn('Success.')
+  else
+    WriteLn('Failure.');
+
   WriteLn('(left) : LOC_REFERENCE; (right) : ordinal constant');
   WriteLn('(left) : LOC_REFERENCE; (right) : ordinal constant');
   { RIGHT : power of 2 ordconstn   }
   { RIGHT : power of 2 ordconstn   }
   { LEFT : LOC_REFERENCE           }
   { LEFT : LOC_REFERENCE           }
@@ -401,7 +420,5 @@ begin
   else
   else
     WriteLn('Failure.');
     WriteLn('Failure.');
 
 
-
-  WriteLn('--------------------- QWORD ------------------------');
 {$ENDIF}
 {$ENDIF}
 end.
 end.