.
----------------------------------------------------------------------
Ran 1 test in 0.011s
OK
('\n---', 'foo')
{}('\n---', "'hi'")
{(SQ )}('\n---', '$var')
{($ Id.VSub_DollarName '$var')}('\n---', '${var}')
{(${ Id.VSub_Name var)}('\n---', ' "$var" ')
{(DQ ($ Id.VSub_DollarName '$var'))}('\n---', ' "${var}" ')
{(DQ (${ Id.VSub_Name var))}('\n---', ' $((1+2)) ')
{
(word_part.ArithSub
anode:
(arith_expr.Binary
op_id: Id.Arith_Plus
left: (arith_expr.ArithWord w:{})
right: (arith_expr.ArithWord w:{})
)
)
}('\n---', ' $(echo hi) ')
{
(command_sub
left_token:
command_list: (command.CommandList children:[(C {} {})])
)
}('\n---', ' "$((1+2))" ')
{
(DQ
(word_part.ArithSub
anode:
(arith_expr.Binary
op_id: Id.Arith_Plus
left: (arith_expr.ArithWord w:{})
right: (arith_expr.ArithWord w:{})
)
)
)
}('\n---', ' "$(echo hi)" ')
{
(DQ
(command_sub
left_token:
command_list: (command.CommandList children:[(C {} {})])
)
)
}('\n---', ' $src/file ')
{($ Id.VSub_DollarName '$src') }('\n---', ' ${src}/file ')
{(${ Id.VSub_Name src) }('\n---', ' "$src/file" ')
{(DQ ($ Id.VSub_DollarName '$src') )}('\n---', ' "${src}/file" ')
{(DQ (${ Id.VSub_Name src) )}('\n---', ' $((1+2))$(echo hi) ')
{
(word_part.ArithSub
anode:
(arith_expr.Binary
op_id: Id.Arith_Plus
left: (arith_expr.ArithWord w:{})
right: (arith_expr.ArithWord w:{})
)
)
(command_sub
left_token:
command_list: (command.CommandList children:[(C {} {})])
)
}('\n---', ' ~/src ')
{ }('\n---', ' ~bob/foo ')
{ }('\n---', 'notleading~')
{ }('\n---', ' "~/src" ')
{(DQ <'~/src'>)}('\n---', ' "~bob/foo" ')
{(DQ <'~bob/foo'>)}