Execute a strict Red-Green-Refactor TDD cycle — one requirement at a time — in any language or framework.
97
Quality
100%
Does it follow best practices?
Impact
94%
1.11xAverage score across 5 eval scenarios
You are using the behavioral-tdd skill. Phases 1 and 2 are complete.
Passing behavioral test:
def test_temperature_converter_celsius_to_fahrenheit():
converter = TemperatureConverter()
assert converter.to_fahrenheit(0) == 32.0
assert converter.to_fahrenheit(100) == 212.0Current Shameless Green implementation:
class TemperatureConverter:
def to_fahrenheit(self, celsius):
if celsius == 0:
return 32.0
if celsius == 100:
return 212.0Execute Phase 3 (REFACTOR). Improve the code quality. The behavioral test must remain GREEN throughout. Include a brief summary of what you changed and why.