grammar_tests/base_tests.json in modl-0.3.19 vs grammar_tests/base_tests.json in modl-0.3.20

- old
+ new

@@ -3012,16 +3012,16 @@ ], "minimised_modl": "_letters=abc;key=\"\\%letters\"" }, { "id": "316", - "input": "We\\\\u2019re=We\\\\u2019re;You~u2019re=We~u2019re", + "input": "We\\u2019re=We\\u2019re;You~u2019re=We~u2019re", "expected_output": "{\n \"We’re\": \"We’re\",\n \"You’re\": \"We’re\"\n}", "tested_features": [ "unicode" ], - "minimised_modl": "We\\\\u2019re=We\\\\u2019re;You~u2019re=We~u2019re" + "minimised_modl": "We\\u2019re=We\\u2019re;You~u2019re=We~u2019re" }, { "id": "317", "input": "*class(\n *id=numbers;\n *assign=[[one;two;three]]\n);\n*class(\n *id=letters;\n *assign=[[a;b;c]]\n);\n*class(\n *id=myArray;\n *assign=[[letters;numbers]]\n);\nmyArray=[[a;b;c];[1;2;3]]", "expected_output": "{\n \"myArray\": [\n {\n \"a\": \"a\",\n \"b\": \"b\",\n \"c\": \"c\"\n },\n {\n \"one\": 1,\n \"two\": 2,\n \"three\": 3\n }\n ]\n}", @@ -3054,7 +3054,37 @@ "expected_output": "[\n {\n \"message\": {\n \"direction\": \"out\",\n \"date_time\": \"2018-03-22 15:25\",\n \"message\": \"Hi\",\n \"method\": \"sms\"\n }\n },\n {\n \"message\": {\n \"direction\": \"in\",\n \"date_time\": \"2018-03-22 15:26\",\n \"message\": \"Hello, how are you?\",\n \"method\": \"sms\"\n }\n },\n {\n \"message\": {\n \"direction\": \"out\",\n \"date_time\": \"2018-03-22 15:25\",\n \"message\": \"Hi, good thanks\",\n \"method\": \"sms\"\n }\n },\n {\n \"message\": {\n \"direction\": \"out\",\n \"date_time\": \"2018-03-22 15:26\",\n \"message\": \"How about you?\",\n \"method\": \"sms\"\n }\n },\n {\n \"message\": {\n \"direction\": \"in\",\n \"date_time\": \"2018-03-22 15:26\",\n \"message\": \"Yes, fine thanks. What are you up to?\",\n \"method\": \"sms\"\n }\n },\n {\n \"message\": {\n \"direction\": \"out\",\n \"date_time\": \"2018-03-22 15:25\",\n \"message\": \"Just testing out MODL\",\n \"method\": \"sms\"\n }\n },\n {\n \"message\": {\n \"direction\": \"in\",\n \"date_time\": \"2018-03-22 15:26\",\n \"message\": \"Cool!\",\n \"method\": \"sms\"\n }\n }\n]", "tested_features": [ "class" ], "minimised_modl": "*class(*id=m;*name=message;*superclass=map;*assign=[[direction;date_time;message]];method=sms);[m=out:2018-03-22 15\\:25:Hi;m=in:2018-03-22 15\\:26:Hello, how are you?;m=out:2018-03-22 15\\:25:Hi, good thanks;m=out:2018-03-22 15\\:26:How about you?;m=in:2018-03-22 1\\:26:Yes, fine thanks. What are you up to?;m=out:2018-03-22 15\\:25:Just testing out MODL;m=in:2018-03-22 15\\:26:Cool!]" + }, + { + "id": "321", + "input": "test=\\~u2019", + "expected_output": "{\n \"test\": \"~u2019\"\n}", + "tested_features": [ + "unicode", + "escapes" + ], + "minimised_modl": "test=\\~u2019" + }, + { + "id": "322", + "input": "test=\\\\u2019", + "expected_output": "{\n \"test\": \"\\\\u2019\"\n}", + "tested_features": [ + "unicode", + "escapes" + ], + "minimised_modl": "test=\\\\u2019" + }, + { + "id": "323", + "input": "test=\\\\~u2019\\\\u2019~u2019\\\\u2019", + "expected_output": "{\n \"test\": \"~u2019\\\\u2019\u2019\\\\u2019\"\n}", + "tested_features": [ + "unicode", + "escapes" + ], + "minimised_modl": "test=\\\\~u2019\\\\u2019~u2019\\\\u2019" } ] \ No newline at end of file