Skip to content

Commit b11f385

Browse files
committed
chore: format code
1 parent c8ad912 commit b11f385

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

tests/test_libsurgeon.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,25 +1620,26 @@ def test_nested_braces(self):
16201620
# Should remove all internal blank lines
16211621
assert "\n\n" not in cleaned.split("{", 1)[1].rsplit("}", 1)[0]
16221622

1623-
16241623
def test_windows_line_endings(self):
16251624
"""Test handling of Windows CRLF line endings"""
16261625
from ghidra_common import clean_decompiled_code
16271626

16281627
# Simulate Windows CRLF output from Ghidra
1629-
code = "void TestFunc(void)\r\n\r\n{\r\n\r\n int x;\r\n\r\n return;\r\n\r\n}\r\n"
1628+
code = (
1629+
"void TestFunc(void)\r\n\r\n{\r\n\r\n int x;\r\n\r\n return;\r\n\r\n}\r\n"
1630+
)
16301631
cleaned = clean_decompiled_code(code)
1631-
1632+
16321633
# Should not have any \r characters
16331634
assert "\r" not in cleaned
1634-
1635+
16351636
# Should not have blank lines inside function
1636-
lines = cleaned.split('\n')
1637+
lines = cleaned.split("\n")
16371638
inside_braces = False
16381639
for line in lines:
1639-
if '{' in line:
1640+
if "{" in line:
16401641
inside_braces = True
1641-
if '}' in line:
1642+
if "}" in line:
16421643
inside_braces = False
16431644
if inside_braces and not line.strip():
16441645
assert False, "Found blank line inside function body"

0 commit comments

Comments
 (0)