Index: client/tests/client/json/json_tests.dart |
=================================================================== |
--- client/tests/client/json/json_tests.dart (revision 3201) |
+++ client/tests/client/json/json_tests.dart (working copy) |
@@ -78,6 +78,7 @@ |
expect(JSON.stringify(false)).equals('false'); |
expect(JSON.stringify(null)).equals('null'); |
expect(JSON.stringify(' hi there" bob ')).equals('" hi there\\" bob "'); |
+ expect(JSON.stringify('hi\nthere')).equals('"hi\\nthere"'); |
Anton Muhin
2012/01/12 13:23:00
may I ask you to add a test for \r as well?
devoncarew
2012/01/12 21:28:11
Done.
|
expect(JSON.stringify('')).equals('""'); |
// Lists. |