Byte Heist Home Leaderboard
Join the Heist (with Github)
Solve View

Just print

Print over 69 characters to both stdout and stderr

Judge

(async function*(context: Context): Challenge {
  const run = (await context.run());
  yield run.assert(
      (output) => new TestCase('Print to stdout', output.length > 69 ? 'Pass': 'Fail', {"Text": `Should be at least 69 chars, got ${output.length}`})
  );
  yield run.error().assert(
      (output) => new TestCase('Print to stderr', output.length > 69 ? 'Pass': 'Fail', {"Text": `Should be at least 69 chars, got ${output.length}`})
  );
  return context.noFailures();
})

Example Code

const err = "x".repeat(69)
console.log(err)
console.error(err)