Make test a little more complex to show it actually fixed the bug.

This commit is contained in:
Joel Leitch 2011-04-20 22:32:13 +00:00
parent f291c4d33e
commit 4efeef1893

View File

@ -278,8 +278,8 @@ public class ArrayTest extends TestCase {
* Regression test for Issue 205
*/
public void testMixingTypesInObjectArraySerialization() {
Object[] array = new Object[] { 1, 2, new Object[] { "one", "two" } };
assertEquals("[1,2,[\"one\",\"two\"]]", gson.toJson(array));
Object[] array = new Object[] { 1, 2, new Object[] { "one", "two", 3 } };
assertEquals("[1,2,[\"one\",\"two\",3]]", gson.toJson(array));
}
/**