package solutions.tretter.githugandroid

/**
 * Port of the upstream ruby-githug `blame` level.
 *
 * Setup documents the repository shape the learner explores. Evaluation is kept
 * state-based whenever the exercise changes repository objects; answer-only
 * levels intentionally validate the answer entered at the prompt.
 */
internal fun blameLevel(): Level = level(
    id = "blame",
    title = "Blame",
    description = "Identify who put a password inside the file `config.rb`.",
    hints = listOf("You want to research the `git blame` command."),
    commandSuggestions = listOf("git blame config.rb"),
    setup = { RepoState(initialized = true, files = listOf(GitFile("config.rb", tracked = true)), branches = mapOf("master" to 1)) },
    validator = commandAnswer("Spider Man"),
    testCases = listOf(
        levelTestCase("answer author", "Spider Man"),
    ),
)
