1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 03:05:22 +03:00
fq/pkg/interp/testdata/value_t.fqtest.tmpl
Mattias Wadman 0c7fa090b0 gojq: Initial update support
decode value give no updateable error
JQValue json value tries to replicate behaveior
2021-09-12 13:08:50 +02:00

39 lines
1.2 KiB
Cheetah

/test.mp3:
$ CMD
PROMPT> EXPR | ., tovalue, type, length?
PROMPT> EXPR[0] | ., type, length?
PROMPT> EXPR[-1000] | ., type, length?
PROMPT> EXPR[1000] | ., type, length?
PROMPT> EXPR[1:3] | ., type, length?
PROMPT> EXPR[0:-1] | ., type, length?
PROMPT> EXPR[-1000:2000] | ., type, length?
PROMPT> EXPR["test"] | ., type, length?
PROMPT> [EXPR[]] | type, length?
PROMPT> EXPR | keys
PROMPT> EXPR | has("a")
PROMPT> EXPR | has(0)
PROMPT> EXPR | type
PROMPT> EXPR | tonumber
PROMPT> EXPR | tostring
PROMPT> EXPR + ""
PROMPT> EXPR + 1
PROMPT> EXPR._start | ., type, length?
PROMPT> EXPR._stop | ., type, length?
PROMPT> EXPR._len | ., type, length?
PROMPT> EXPR._name | ., type, length?
PROMPT> EXPR._symbol | ., type, length?
PROMPT> EXPR._description | ., type, length?
PROMPT> EXPR._path | ., type, length?
PROMPT> EXPR._bits | ., type, length?
PROMPT> EXPR._bytes | ., type, length?
PROMPT> EXPR._error | ., type, length?
PROMPT> EXPR._unknown | ., type, length?
PROMPT> EXPR.a = 1
PROMPT> EXPR[0] = 1
PROMPT> EXPR.a |= empty
PROMPT> EXPR[0] |= empty
PROMPT> EXPR | setpath(["a"]; 1)
PROMPT> EXPR | setpath([0]; 1)
PROMPT> EXPR | delpaths([["a"]])
PROMPT> EXPR | delpaths([[0]])
PROMPT> ^D