We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605a062 commit 0832cd1Copy full SHA for 0832cd1
src/test/org/bson/BSONTest.java
@@ -164,18 +164,14 @@ public void testOBBig1(){
164
public void testUTF8() {
165
for (int i = 1; i <= Character.MAX_CODE_POINT; i++) {
166
167
- if (!Character.isValidCodePoint(i)) {
168
- continue;
169
- }
170
-
171
- if (Character.isSurrogate((char) i)) {
+ if (Character.getType(i) == Character.SURROGATE) {
172
continue;
173
}
174
175
String orig = new String(Character.toChars(i));
176
BSONObject a = new BasicBSONObject(orig, orig);
177
BSONObject b = BSON.decode(BSON.encode(a));
178
- assertEquals(a, b);
+ assertEquals("Could not round trip code point " + i, a, b);
179
180
181
0 commit comments