[svn] r6794: vs-plugin/trunk: ConsoleTest/Program.cs
Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Cont...
VladD2
svnadmin at nemerle.org
Thu Oct 26 14:19:34 CEST 2006
Log:
Add test: Hint on "return" macro.
2 IT: Fix it, please.
Author: VladD2
Date: Thu Oct 26 14:19:32 2006
New Revision: 6794
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 Thu Oct 26 14:19:32 2006
@@ -12,6 +12,7 @@
Test1 test = new Test1();
test.Init();
+ test.Hint_on_return();
test.Hint_in_body_of_implicit_match();
test.Overload1();
test.QuickTip_ClassExtension();
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 Thu Oct 26 14:19:32 2006
@@ -1,6 +1,7 @@
using /*using*/System.Console;
//using System;
using SYZ = System.Collections.Generic;
+using Nemerle.Imperative;
public delegate TestDel () : bool;
@@ -90,6 +91,11 @@
| Bbb => "Bbb"
}
+ public Method12(x : bool) : void
+ {
+ return/*Hint on return:-1*/;
+ }
+
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 Thu Oct 26 14:19:32 2006
@@ -14,6 +14,17 @@
public partial class Test1
{
[Test]
+ public Hint_on_return() : void
+ {
+ def file = FilePath1;
+ def (line, col) = ReadLocation(file, "Hint on return");
+ def result = _project.GetQuickTipInfo(file, line, col, TestSourceTextManager(file));
+
+ Assert.IsNotNull(result, "result is null");
+ Assert.AreEqual (result.Text.Split('\n')[0], "(lacal value) _N_return");
+ }
+
+ [Test]
public Complete_GlabalNs_in_NestedNs() : void
{
def file = FilePath1;
More information about the svn
mailing list