All MicroEvals
Deepseek pro VS Claude Sonnet
Create MicroEval

Deepseek pro VS Claude Sonnet

Prompt

async function getTotal(ids) { let total = 0; ids.forEach(async (id) => { const price = await fetchPrice(id); total += price; }); return total; } What's wrong with this code, what will it actually return, and fix it. Explain why Python's list.append() returns the new length of the list. Find the bug, fix it, and write a test that would have caught it.

Drag to resize
Drag to resize