fail
Before · Fictional example baseline
- Captured command
- python3 -B -m unittest test_sort_prices
- Exit / state
- 1 / completed
- Started / finished
- 2026-10-09T02:58:48.645490+00:00 / 2026-10-09T02:58:48.686590+00:00
- Capture SHA-256
- cc11bc2b6acc3e629b993439679cbf923faa33f85214d332db1e5d5f8971b3f8
Before terminal excerpt
.FF
======================================================================
FAIL: test_negative_and_duplicate_values (test_sort_prices.PriceOrdering.test_negative_and_duplicate_values)
----------------------------------------------------------------------
Traceback (most recent call last):
File "<workspace>/test_sort_prices.py", line 10, in test_negative_and_duplicate_values
self.assertEqual(order_prices([2, -4, 10, 2, -12]), [-12, -4, 2, 2, 10])
AssertionError: Lists differ: [-12, -4, 10, 2, 2] != [-12, -4, 2, 2, 10]
First differing element 2:
10
2
- [-12, -4, 10, 2, 2]
+ [-12, -4, 2, 2, 10]
======================================================================
FAIL: test_numeric_order (test_sort_prices.PriceOrdering.test_numeric_order)
----------------------------------------------------------------------
Traceback (most recent call last):
File "<workspace>/test_sort_prices.py", line 7, in test_numeric_order
self.assertEqual(order_prices([20, 3, 100]), [3, 20, 100])
AssertionError: Lists differ: [100, 20, 3] != [3, 20, 100]
First differing element 0:
100
3
- [100, 20, 3]
+ [3, 20, 100]
----------------------------------------------------------------------
Ran 3 tests in 0.000s
FAILED (failures=2)
Full bounded captured logs shown. Review before sharing.
pass
After · Fictional example after fix
- Captured command
- python3 -B -m unittest test_sort_prices
- Exit / state
- 0 / completed
- Started / finished
- 2026-10-09T02:58:48.687664+00:00 / 2026-10-09T02:58:48.734363+00:00
- Capture SHA-256
- c1f034c47e0d296e683e4ed08a362ec0e06994eb9fb4c56824442b99c7aa79ae