Make test a little more complex to show it actually fixed the bug.
This commit is contained in:
parent
f291c4d33e
commit
4efeef1893
@ -278,8 +278,8 @@ public class ArrayTest extends TestCase {
|
|||||||
* Regression test for Issue 205
|
* Regression test for Issue 205
|
||||||
*/
|
*/
|
||||||
public void testMixingTypesInObjectArraySerialization() {
|
public void testMixingTypesInObjectArraySerialization() {
|
||||||
Object[] array = new Object[] { 1, 2, new Object[] { "one", "two" } };
|
Object[] array = new Object[] { 1, 2, new Object[] { "one", "two", 3 } };
|
||||||
assertEquals("[1,2,[\"one\",\"two\"]]", gson.toJson(array));
|
assertEquals("[1,2,[\"one\",\"two\",3]]", gson.toJson(array));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user