Skip to content

Commit 3c223af

Browse files
committed
Odious bug made by the AI. Why does it keep trying to put emojis everywhere?
1 parent a697b4d commit 3c223af

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

tests/test_strings_integration.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ def test_strings_on_self():
8484
print(f"\nFound {count} strings")
8585

8686
if count > 0:
87-
print(" TEST PASSED: Successfully extracted ASCII strings")
87+
print("[PASS] TEST PASSED: Successfully extracted ASCII strings")
8888
return True
8989
else:
90-
print(" TEST FAILED: No strings found")
90+
print("[FAIL] TEST FAILED: No strings found")
9191
return False
9292

9393
except Exception as e:
94-
print(f" TEST FAILED: {e}")
94+
print(f"[FAIL] TEST FAILED: {e}")
9595
import traceback
9696

9797
traceback.print_exc()
@@ -135,7 +135,7 @@ def test_strings_on_notepad():
135135
print(f"Started notepad.exe with PID: {pid}")
136136
notepad_process = Process(pid)
137137
else:
138-
print(" Could not start notepad.exe")
138+
print("[FAIL] Could not start notepad.exe")
139139
return False
140140

141141
# Extract strings
@@ -164,14 +164,14 @@ def test_strings_on_notepad():
164164
print(f" Unicode strings: {unicode_count}")
165165

166166
if count > 0:
167-
print(" TEST PASSED: Successfully extracted strings from notepad.exe")
167+
print("[PASS] TEST PASSED: Successfully extracted strings from notepad.exe")
168168
return True
169169
else:
170-
print(" TEST FAILED: No strings found in notepad.exe")
170+
print("[FAIL] TEST FAILED: No strings found in notepad.exe")
171171
return False
172172

173173
except Exception as e:
174-
print(f" TEST FAILED: {e}")
174+
print(f"[FAIL] TEST FAILED: {e}")
175175
import traceback
176176

177177
traceback.print_exc()
@@ -223,16 +223,16 @@ def test_encoding_filters():
223223

224224
# Verify that "both" returns more results
225225
if both_count >= ascii_count and both_count >= unicode_count:
226-
print(" TEST PASSED: Encoding filters work correctly")
226+
print("[PASS] TEST PASSED: Encoding filters work correctly")
227227
return True
228228
else:
229229
print(
230-
f" TEST FAILED: Expected 'both' ({both_count}) >= ascii ({ascii_count}) and unicode ({unicode_count})"
230+
f"[FAIL] TEST FAILED: Expected 'both' ({both_count}) >= ascii ({ascii_count}) and unicode ({unicode_count})"
231231
)
232232
return False
233233

234234
except Exception as e:
235-
print(f" TEST FAILED: {e}")
235+
print(f"[FAIL] TEST FAILED: {e}")
236236
import traceback
237237

238238
traceback.print_exc()
@@ -272,16 +272,16 @@ def test_min_length():
272272

273273
# Shorter min length should find more or equal strings
274274
if count_short >= count_long:
275-
print(" TEST PASSED: minLength parameter works correctly")
275+
print("[PASS] TEST PASSED: minLength parameter works correctly")
276276
return True
277277
else:
278278
print(
279-
f" TEST FAILED: Expected more strings with minLength=4 ({count_short}) than minLength=10 ({count_long})"
279+
f"[FAIL] TEST FAILED: Expected more strings with minLength=4 ({count_short}) than minLength=10 ({count_long})"
280280
)
281281
return False
282282

283283
except Exception as e:
284-
print(f" TEST FAILED: {e}")
284+
print(f"[FAIL] TEST FAILED: {e}")
285285
import traceback
286286

287287
traceback.print_exc()
@@ -316,17 +316,17 @@ def main():
316316
total = len(results)
317317

318318
for name, result in results:
319-
status = "PASS" if result else "FAIL"
319+
status = "[PASS]" if result else "[FAIL]"
320320
print(f"{status}: {name}")
321321

322322
print()
323323
print(f"Total: {passed}/{total} tests passed")
324324

325325
if passed == total:
326-
print("\n🎉 All tests passed!")
326+
print("\nAll tests passed!")
327327
sys.exit(0)
328328
else:
329-
print(f"\n{total - passed} test(s) failed")
329+
print(f"\n{total - passed} test(s) failed")
330330
sys.exit(1)
331331

332332

0 commit comments

Comments
 (0)