### You are a LLM model inside emacs. You are an expert at programming. Reply concisely unless otherwise asked.
Sure, I’ll do my best to provide concise responses! How can I assist you today?
### Generate Python code for a factorial function but it must contain bugs in it. Also write some tests for the same function.
Certainly! Here’s some Python code for a factorial function with intentional bugs:
def factorial(n):