[svn] r6867: vs-plugin/trunk: ConsoleTest/Program.cs
Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Cont...
VladD2
svnadmin at nemerle.org
Sat Nov 11 16:29:16 CET 2006
Log:
Change tests.
Author: VladD2
Date: Sat Nov 11 16:29:13 2006
New Revision: 6867
Modified:
vs-plugin/trunk/ConsoleTest/Program.cs
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1-2.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.Init.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 Sat Nov 11 16:29:13 2006
@@ -12,6 +12,8 @@
Test1 test = new Test1();
test.Init();
+ test.QuickTip_TupleProp();
+ test.QuickTip_TupleMethod();
test.Complete_enum();
test.SimpleSourceTextManager_GetLine();
test.SimpleSourceTextManager_GetLine_EOF();
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1-2.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1-2.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Content/Class1-2.n Sat Nov 11 16:29:13 2006
@@ -4,16 +4,13 @@
namespace Tests
{
-
- struct XStruct
- {/*Tests.XStruct*/
-
-
-
- }
-
partial class Class1
{
+ p1 : int * list[string * XStruct] /*TupleProp:-5*/
+ {
+ get { (0, [("str", XStruct())]) }
+ }
+
public MethodInPart2() : string
{
null
@@ -23,11 +20,13 @@
{
(0, "str", XStruct())
}
-
- p1 : int * list[string * XStruct] /*TupleProp:-5*/
- {
- get { (0, [("str", XStruct())]) }
}
+
+ struct XStruct
+ {/*Tests.XStruct*/
+
+
+
}
}
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.Init.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.Init.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Tests.Init.n Sat Nov 11 16:29:13 2006
@@ -30,10 +30,15 @@
AddAssembly("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
AddAssembly("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
- _engine.Sources.AddOrUpdate(FilePath1, File.ReadAllText(FilePath1));
+ def addSource(source)
+ {
+ _engine.Sources.AddOrUpdate(source, File.ReadAllText(source));
+ }
+
+ addSource(FilePath2);
Assert.AreEqual(1, _engine.Sources.Count, "Expected Failure.");
- _engine.Sources.AddOrUpdate(FilePath2, File.ReadAllText(FilePath2));
+ addSource(FilePath1);
Assert.AreEqual(2, _engine.Sources.Count, "Expected Failure.");
_project = _engine.Project;
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 Sat Nov 11 16:29:13 2006
@@ -401,7 +401,7 @@
}
[Test]
- public QuickTip_Tuple() : void
+ public QuickTip_TupleMethod() : void
{
def file = FilePath2;
def (line, col) = ReadLocation(file, "TupleMethod");
@@ -414,7 +414,7 @@
}
[Test]
- public QuickTip_Tuple_FIXME() : void
+ public QuickTip_TupleProp() : void
{
def file = FilePath2;
def (line, col) = ReadLocation(file, "TupleProp");
More information about the svn
mailing list