Learn more: A tale as old as time

# A software tester walks into a bar.

def test_bar():

    test_cases = {

        “walks into a bar”,

        “runs into a bar”,

        “crawls into a bar”,

        “dances into a bar”,

        “flies into a bar”,

        “jumps into a bar”,

    # And orders:

        “orders a beer”,

        “orders 2 beers”,

        “orders 0 beers”,

        “orders 99999999 beers”,

        “orders a lizard in a beer glass”,

        “orders -1 beer”,

        “orders ‘qwertyuiop’ beers”

    }

    for case in test_cases:

        print(f”Test case: {case} – ✅”)

    print(“\nAll tests passed.“)

test_bar()


A real customer asks where the bathroom is.

The bar bursts into flames.