[svn] r7082: vs-plugin/trunk: ConsoleTest/Program.cs Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Cont...

VladD2 svnadmin at nemerle.org
Tue Dec 12 12:18:38 CET 2006


Log:
Add completion test.

Author: VladD2
Date: Tue Dec 12 12:18:34 2006
New Revision: 7082

Modified:
   vs-plugin/trunk/ConsoleTest/Program.cs
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1.n
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.n

Modified: vs-plugin/trunk/ConsoleTest/Program.cs
==============================================================================
--- vs-plugin/trunk/ConsoleTest/Program.cs	(original)
+++ vs-plugin/trunk/ConsoleTest/Program.cs	Tue Dec 12 12:18:34 2006
@@ -12,6 +12,7 @@
 			Test1 test = new Test1();
 			test.Init();
 
+			test.Complete_empty();
 			test.Complete_System_Collections_Generic_List__Collections();
 			test.Complete_namespace_2();
 			test.Complete_Complete_expr();

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1.n	Tue Dec 12 12:18:34 2006
@@ -138,6 +138,11 @@
           _ = xx;
         }
 
+        public Method19() : void
+        {
+          /*Complete empty:-0*/
+        }
+
         xxx : TestVariant2;
       }
     }

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.n	Tue Dec 12 12:18:34 2006
@@ -16,6 +16,16 @@
   public partial class Test1
   {
     [Test]
+    public Complete_empty() : void
+    {
+      def file = FilePath1;
+      def (line, col) = ReadLocation(file, "Complete empty");
+      def result = _project.CompleteWord(file, line, col, TestSourceTextManager(file));
+      Assert.IsNotNull(result, "result is null");
+      Assert.Greater(result.Length, 10);
+    }
+
+    [Test]
     public Complete_System_Collections_Generic_List__Collections() : void
     {
       def file = FilePath1;



More information about the svn mailing list