]> git.madduck.net Git - etc/vim.git/blob - tests/data/simple_cases/fstring.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix typo in `target-version` param wrongly used in plural (#3817)
[etc/vim.git] / tests / data / simple_cases / fstring.py
1 f"f-string without formatted values is just a string"
2 f"{{NOT a formatted value}}"
3 f"{{NOT 'a' \"formatted\" \"value\"}}"
4 f"some f-string with {a} {few():.2f} {formatted.values!r}"
5 f'some f-string with {a} {few(""):.2f} {formatted.values!r}'
6 f"{f'''{'nested'} inner'''} outer"
7 f"\"{f'{nested} inner'}\" outer"
8 f"space between opening braces: { {a for a in (1, 2, 3)}}"
9 f'Hello \'{tricky + "example"}\''
10 f"Tried directories {str(rootdirs)} \
11 but none started with prefix {parentdir_prefix}"
12
13 # output
14
15 f"f-string without formatted values is just a string"
16 f"{{NOT a formatted value}}"
17 f'{{NOT \'a\' "formatted" "value"}}'
18 f"some f-string with {a} {few():.2f} {formatted.values!r}"
19 f'some f-string with {a} {few(""):.2f} {formatted.values!r}'
20 f"{f'''{'nested'} inner'''} outer"
21 f"\"{f'{nested} inner'}\" outer"
22 f"space between opening braces: { {a for a in (1, 2, 3)}}"
23 f'Hello \'{tricky + "example"}\''
24 f"Tried directories {str(rootdirs)} \
25 but none started with prefix {parentdir_prefix}"