Browse Source

Fixed the test for indexers.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/61/head
Dimitar Dobrev 12 years ago
parent
commit
39bc4da0e9
  1. 1
      tests/UTF16/UTF16.Tests.cs
  2. 4
      tests/UTF16/UTF16.cpp
  3. 2
      tests/UTF16/UTF16.h

1
tests/UTF16/UTF16.Tests.cs

@ -15,6 +15,5 @@ public class UTF16Tests @@ -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));
}
}

4
tests/UTF16/UTF16.cpp

@ -6,7 +6,7 @@ int Foo::operator[](int i) const @@ -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;
}

2
tests/UTF16/UTF16.h

@ -11,7 +11,7 @@ public: @@ -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);

Loading…
Cancel
Save