-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
814fa2e
commit a4ec707
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
/** | ||
* @params filePath - PS코드의 절대경로 | ||
* @returns solve - 입력값을 인자로 받아 PS 코드 실행 결과를 string으로 반환하는 함수 | ||
* | ||
* @example // BoJ 1000번 문제 풀이 1000.test.js | ||
const path = require("path"); | ||
const genSolve = require("solve.io"); | ||
const solve = genSolve(path.resolve(__dirname, "1000.js")); | ||
test("예제 1", async () => { | ||
const input = `1 2`; | ||
const output = `3 | ||
`; | ||
expect(await solve(input)).toBe(output); | ||
}); | ||
*/ | ||
declare const generateSolve: (filePath: string) => (input: string) => Promise<string>; | ||
export = generateSolve; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters