← mined_baseline

rich_2118

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich

Task input

(not found in data/tasks.jsonl)

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
F
=================================== FAILURES ===================================
_________________________________ test_decode __________________________________

    def test_decode():
        console = Console(
            force_terminal=True, legacy_windows=False, color_system="truecolor"
        )
        console.begin_capture()
        console.print("Hello")
        console.print("[b]foo[/b]")
        console.print("[link http://example.org]bar")
        console.print("[#ff0000 on color(200)]red")
        console.print("[color(200) on #ff0000]red")
        terminal_codes = console.end_capture()
    
        decoder = AnsiDecoder()
        lines = list(decoder.decode(terminal_codes))
    
        expected = [
            Text("Hello"),
            Text("foo", spans=[Span(0, 3, Style.parse("bold"))]),
            Text("bar", spans=[Span(0, 3, Style.parse("link http://example.org"))]),
            Text("red", spans=[Span(0, 3, Style.parse("#ff0000 on color(200)"))]),
            Text("red", spans=[Span(0, 3, Style.parse("color(200) on #ff0000"))]),
        ]
    
>       assert lines == expected
E       AssertionError: assert [<text 'Hello...3, Style())]>] == [<text 'Hello... blue=0))))]>]
E         
E         At index 3 diff: <text 'red' [Span(0, 3, Style())]> != <text 'red' [Span(0, 3, Style(color=Color('#ff0000', ColorType.TRUECOLOR, triplet=ColorTriplet(red=255, green=0, blue=0)), bgcolor=Color('color(200)', ColorType.EIGHT_BIT, number=200)))]>
E         Use -v to get more diff

tests/test_ansi.py:30: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed in 0.16s