Skip to content

gpsaggese/helpers / .claude/skills/testing.fix_input_output_vars

testing.fix_input_output_vars

Verified

Fix the input / output variables of a test

Goal

  • Transform the test method so that:

    • The inputs and outputs are strings with """ and dedent
    • The output is checked with self.assert_equal()
    • Follow .claude/skills/testing.rules.md:
      • # Writing Test Code
      • ## Code Formatting in Tests
      • # Test Input and Output Handling
      • ## Compare Whole Output with assert_equal, Not Piecewise
  • Factor out as much code as possible into helper functions

    • Follow ## Use Helper Methods When You Have Repetitive Tests in .claude/skills/testing.rules.md
  • Do not change the intent of the test

Verification

  • Run the tests to make sure they pass
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 196kUpdated Claude CodeCodexVerifiedInstall