1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 09:56:07 +03:00
fq/pkg/interp/testdata/value_t.fqtest.tmpl
Mattias Wadman e77f776999 decode,interp: Rename unknown gap fields from "unknown#" to "gap#"
Think it makes it clearer and also less likely to collide with a field
name a deocder wants to use.
2022-12-01 20:43:30 +01:00

39 lines
1.2 KiB
Cheetah

$ CMD
PROMPT> EXPR | ., tovalue, toactual, tosym, 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._actual | ., type, length?
PROMPT> EXPR._sym | ., 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._gap | ., 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