From 39bc4da0e96083ef490b7da98b686c498c15dba8 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 13 Sep 2013 21:51:59 +0300 Subject: [PATCH] Fixed the test for indexers. Signed-off-by: Dimitar Dobrev --- tests/UTF16/UTF16.Tests.cs | 1 - tests/UTF16/UTF16.cpp | 4 ++-- tests/UTF16/UTF16.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/UTF16/UTF16.Tests.cs b/tests/UTF16/UTF16.Tests.cs index c9f1a2ed..8f5221bf 100644 --- a/tests/UTF16/UTF16.Tests.cs +++ b/tests/UTF16/UTF16.Tests.cs @@ -15,6 +15,5 @@ public class UTF16Tests // TODO: move this, it has nothing to do with Unicode, it's here only not to break the CLI branch Assert.That(foo[0], Is.EqualTo(5)); - Assert.That(foo.OperatorSubscript(0), Is.EqualTo(IntPtr.Zero)); } } diff --git a/tests/UTF16/UTF16.cpp b/tests/UTF16/UTF16.cpp index ed65b3d8..1e7ee0ca 100644 --- a/tests/UTF16/UTF16.cpp +++ b/tests/UTF16/UTF16.cpp @@ -6,7 +6,7 @@ int Foo::operator[](int i) const return 5; } -char* Foo::operator[](int i) +int Foo::operator[](int i) { - return 0; + return 5; } \ No newline at end of file diff --git a/tests/UTF16/UTF16.h b/tests/UTF16/UTF16.h index 16f29e28..6893aabc 100644 --- a/tests/UTF16/UTF16.h +++ b/tests/UTF16/UTF16.h @@ -11,7 +11,7 @@ public: // TODO: move this, it has nothing to do with Unicode, it's here only not to break the CLI branch int operator[](int i) const; - char* operator[](int i); + int operator[](int i); }; DLL_API int FooCallFoo(Foo* foo);