from algo_analyze import inspect

def test_time_and_memory_fields():
    @inspect
    def dummy():
        lst = [i for i in range(1000)]
        return len(lst)

    report = dummy()

    assert isinstance(report["execution_time"], float)
    assert isinstance(report["memory_used"], float)
    assert isinstance(report["peak_memory"], float)
