mirror of
https://github.com/micropython/micropython.git
synced 2026-03-10 19:00:30 +01:00
Includes corresponding .exp files because this feature is only available in Python 3.14+. Tests for `!a` conversion specifier and space after `!` are not included because they are not supported by MicroPython. Signed-off-by: Koudai Aono <koxudaxi@gmail.com> Signed-off-by: Damien George <damien@micropython.org>
21 lines
586 B
Plaintext
21 lines
586 B
Plaintext
|
|
=== Bracket/paren depth tracking ===
|
|
Colon in key: expr=d['b:c'], value=2
|
|
Slice colon: expr=items[1:3], value=[20, 30]
|
|
Function call: expr=pair(1, 2), value=(1, 2)
|
|
Default arg colon: expr=pair(3), value=(3, ':')
|
|
Nested brackets: expr=matrix[0][1], value=2
|
|
|
|
=== Inline template literal tests ===
|
|
Empty nested: Template
|
|
With content: Template
|
|
Concatenation: Template
|
|
Mixed quotes: Template
|
|
Nested interp: Template
|
|
|
|
=== Backslashes not allowed in expressions (PEP 498/750) ===
|
|
Backslash in expression: SyntaxError
|
|
Escaped newline: SyntaxError
|
|
|
|
=== Format spec with special characters ===
|