Skip to content

Commit 6510402

Browse files
committed
fixup: escape '{' and '}' in f-strings
1 parent 35a1a0f commit 6510402

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lldb/test/API/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ def vector_formatting_test(self, allow_jit=True):
8080
self.expect(f"expr{jit_flag} -- float4(0)", substrs=["(0, 0, 0, 0)"])
8181
self.expect(f"expr{jit_flag} -- float4(1)", substrs=["(1, 1, 1, 1)"])
8282
self.expect(
83-
f"expr{jit_flag} -- float4{0.1, 0.2, 0.3, 0.4}",
84-
substrs=["(0.1, 0.2, 0.3, 0.4)"],
83+
f"expr{jit_flag} -- float4{{1.25, 2.5, 3.25, 4.5}}",
84+
substrs=["(1.25, 2.5, 3.25, 4.5)"],
85+
)
86+
self.expect(
87+
f"expr{jit_flag} -- float4{{0.1, 0.2, 0.3, 0.4}}[0]", substrs=["0.1"]
8588
)
86-
self.expect(f"expr{jit_flag} -- float4{0.1, 0.2, 0.3, 0.4}[0]", substrs=["0.1"])
8789

8890
oldValue = v.GetChildAtIndex(0).GetValue()
8991
v.SetFormat(lldb.eFormatHex)

0 commit comments

Comments
 (0)