-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update test to be more complex
- Loading branch information
Showing
2 changed files
with
37 additions
and
4 deletions.
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,10 +1,34 @@ | ||
import { yaksok } from '@dalbit-yaksok/core' | ||
|
||
// const quickJS = new QuickJS({ | ||
// prompt, | ||
// }) | ||
|
||
// await quickJS.init() | ||
|
||
await yaksok( | ||
` | ||
약속, 회전설정 | ||
결과: "rotate" | ||
약속, 물어보기 | ||
결과: "성공" | ||
약속, (질문) 물어보기 | ||
결과: "이건 아님" | ||
(회전설정) 보여주기 | ||
(물어보기) + 물어보기 * 3 보여주기 | ||
("뭐라도" 물어보기) + ("뭐라도" 물어보기) * 3 보여주기 | ||
`, | ||
// { | ||
// runFFI(runtime, bodyCode, args) { | ||
// if (runtime === 'JavaScript') { | ||
// const result = quickJS.run(bodyCode, args) | ||
// if (!result) { | ||
// throw new Error('Result is null') | ||
// } | ||
|
||
// return result | ||
// } | ||
|
||
// throw new Error(`Unknown runtime: ${runtime}`) | ||
// }, | ||
// }, | ||
) |
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