Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A shared assertion helper reports failures at its own line instead of the caller. What is the narrow fix?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-5/checkpoint-5-helper-location/).
Context (verbatim from the page):
"""
A shared assertion helper reports failures at its own line instead of the caller. What is the narrow fix?
Call `t.Helper()` at the start of the helper.
Replace every `t.Errorf` with `panic`.
Move the helper into a non-test package.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.