Skip to content

Commit

Permalink
Add an f-string test
Browse files Browse the repository at this point in the history
This checks a regression caused by a previous version of a previous commit.
  • Loading branch information
Kodiologist committed May 6, 2021
1 parent b207c9e commit 797835b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/native_tests/language.hy
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@
(assert (= f"hello world" "hello world"))
(assert (= f"hello {(+ 1 1)} world" "hello 2 world"))
(assert (= f"a{ (.upper (+ \"g\" \"k\")) }z" "aGKz"))
(assert (= f"a{1}{2}b" "a12b"))

; Referring to a variable
(setv p "xyzzy")
Expand Down

0 comments on commit 797835b

Please sign in to comment.