docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a command-line utility that simulates downloading files and displays real-time progress feedback to the user.
The utility should:
The progress display should update smoothly during downloads and show clear visual feedback to users about download progress.
/**
* Simulates downloading files with progress display
* @param {Array<{name: string, size: number}>} files - Array of files with name and size in MB
*/
function downloadFiles(files);
module.exports = { downloadFiles };[{name: 'doc.pdf', size: 10}, {name: 'video.mp4', size: 50}], it completes the download simulation and displays progress updates @test[], it completes immediately without errors @test[{name: 'image.jpg', size: 5}], it shows progress from 0% to 100% @testProvides command-line interface utilities including progress display functionality.