UNPKG

aoc-copilot

Version:

Advent of Code automatic runner for examples and inputs

47 lines 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const runner_1 = require("./runner"); // import * as utils from './utils'; async function solve(inputs, // inputs for example or actual puzzle part, // part 1 or 2 test, // true (example) or false (actual input) additionalInfo // Additional info for some puzzles with multiple examples ) { let answer = 0; throw new Error('Not implemented'); // <-- Replace with your solution (raising an exception forces printing the example input and answer to the console) return answer; } (0, runner_1.run)(__filename, solve, { testsOnly: false, // Only run the examples (true) or run both examples and inputs (false) (default) skipTests: false, // Skip the examples (true) or run the examples (false) (default) // onlyPart: 1, // Run only part 1 or 2 }); //, { // "reason": "No tests", // "part1length": 0, // "inputs": { // "selector": "code", // "indexes": [] // }, // "answers": { // "selector": "code", // "indexesOrLiterals": [] // // }, // // "additionalInfos": { // // "key": "steps", // // "selector": "code, em", // // "indexes": [], // // "transforms": [{ // // "functions": [ // // { "split": ["\n"] }, // // { "at": [-2] }, // // { "match": ["(?<=Result: ).*", ""] }, // // { "at": [0] } // // ], "appliesTo": [0, 1, 2, 3] // // }] // } // }); //, [{ // part: 1, // inputs: ['Test case input'], // answer: 'Expected answer' // }]); //# sourceMappingURL=__template.js.map