ninja: no work to do. *** Running test-encode ===== CASE: -c var d = {}; setvar d.k = d; json write (d) ===== [ -c flag ]:1: json write: Can't encode Dict 0x18cd in object cycle ===== CASE: -c var L = []; call L->append(L); json write (L) ===== [ -c flag ]:1: json write: Can't encode List 0x18c5 in object cycle ===== CASE: -c var L = []; call L->append(/d+/); j8 write (L) ===== var L = []; call L->append(/d+/); j8 write (L) ^ [ -c flag ]:1: fatal: 'j8' appears to be external. External commands don't accept typed args (OILS-ERR-200) OK test-encode *** Running test-lex-errors ===== CASE: -c echo [\" | json read ===== echo [\" | json read ^~~~ [ -c flag ]:1: json read: ASCII control chars are illegal in NIL8 strings (pos 1-3: '["\n') ===== CASE: -c echo -n [\" | json read ===== echo -n [\" | json read ^~~~ [ -c flag ]:1: json read: Unexpected EOF while lexing NIL8 string (pos 1-2: '["') json="Î" ===== CASE: -c echo -n \"Î\" | json read ===== echo -n \"Î\" | json read ^~~~ [ -c flag ]:1: json read: Invalid UTF-8 in NIL8 string literal: '\xce"' (pos 0-2: '"\xce"') OK test-lex-errors *** Running test-parse-errors ===== CASE: -c echo "" | json read ===== echo "" | json read ^~~~ [ -c flag ]:1: json read: Unexpected EOF while parsing JSON (pos 1-1: '\n') ===== CASE: -c echo { | json read ===== echo { | json read ^~~~ [ -c flag ]:1: json read: Expected Id.J8_String, got Id.Eol_Tok (pos 2-2: '{\n') ===== CASE: -c echo + | json read ===== echo + | json read ^~~~ [ -c flag ]:1: json read: Invalid token while parsing JSON: Id.J8_Operator (pos 0-1: '+\n') ===== CASE: -c echo "(" | json read ===== echo "(" | json read ^~~~ [ -c flag ]:1: json read: Invalid token while parsing JSON: Id.J8_LParen (pos 0-1: '(\n') OK test-parse-errors data_lang/json-errors.sh: 3 tests passed.