summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/string_fstring.py4
-rw-r--r--tests/cmdline/cmd_parsetree.py.exp4
-rw-r--r--tests/cpydiff/core_fstring_raw.py8
3 files changed, 6 insertions, 10 deletions
diff --git a/tests/basics/string_fstring.py b/tests/basics/string_fstring.py
index 3a8969272..d94cc0cd3 100644
--- a/tests/basics/string_fstring.py
+++ b/tests/basics/string_fstring.py
@@ -75,3 +75,7 @@ print(
f"cd---------------------------------"
f"e{y}f---------------------------------"
)
+
+# Raw f-strings.
+print(rf"\r\a\w {'f'} \s\t\r\i\n\g")
+print(fr"\r{x}")
diff --git a/tests/cmdline/cmd_parsetree.py.exp b/tests/cmdline/cmd_parsetree.py.exp
index 6ec553b8a..672c212a9 100644
--- a/tests/cmdline/cmd_parsetree.py.exp
+++ b/tests/cmdline/cmd_parsetree.py.exp
@@ -1,6 +1,6 @@
----------------
[ 1] file_input_2(1) (n=10)
- tok(6)
+ tok(5)
[ 4] \(rule\|for_stmt\)(22) (n=4)
id(i)
[ 4] \(rule\|atom_paren\)(45) (n=1)
@@ -9,7 +9,7 @@
NULL
[ 6] \(rule\|expr_stmt\)(5) (n=2)
id(a)
- tok(16)
+ tok(15)
[ 7] \(rule\|expr_stmt\)(5) (n=2)
id(b)
str(str)
diff --git a/tests/cpydiff/core_fstring_raw.py b/tests/cpydiff/core_fstring_raw.py
deleted file mode 100644
index 84e265f70..000000000
--- a/tests/cpydiff/core_fstring_raw.py
+++ /dev/null
@@ -1,8 +0,0 @@
-"""
-categories: Core
-description: Raw f-strings are not supported
-cause: MicroPython is optimised for code space.
-workaround: Unknown
-"""
-
-rf"hello"