浏览代码

tests: improve dot units test

git-svn-id: trunk@24248 -
paul 12 年之前
父节点
当前提交
71b853065a
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 6 2
      tests/test/tdotunits2.pp
  2. 2 0
      tests/test/udots.dot.pp

+ 6 - 2
tests/test/tdotunits2.pp

@@ -1,4 +1,3 @@
-{%norun}
 program tdotunits2;
 program tdotunits2;
 
 
 {$mode delphi}
 {$mode delphi}
@@ -8,6 +7,11 @@ uses
 
 
 begin
 begin
   // this identifier should be resolved to test variable from udots.dot unit
   // this identifier should be resolved to test variable from udots.dot unit
-  udots.dot.test := 'c';
+  udots.dot.test := 'a';
+  if udots.dot.test <> 'a' then
+    halt(1);
+  udots.dot.t;
+  if udots.dot.test <> 'c' then
+    halt(2);
 end.
 end.
 
 

+ 2 - 0
tests/test/udots.dot.pp

@@ -5,6 +5,8 @@ interface
 var
 var
   test: char;
   test: char;
 
 
+procedure t;
+
 implementation
 implementation
 
 
 uses
 uses