Skip to content

Commit

Permalink
refactor(ppc/concat): 设置无缓冲模式,明确题目信息分界 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
13m0n4de authored Sep 11, 2024
1 parent a96d5ff commit 67f3c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions challenges/ppc/concat/build/src/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
(require "parser.rkt")
(require "test-cases.rkt")

(file-stream-buffer-mode (current-input-port) 'none)
(file-stream-buffer-mode (current-output-port) 'none)

(define parse-error-responses
'("语法都不对,做不来的事就别轻易说出口"
"连语法都会出错,有办法背负其他人的人生吗"
Expand Down Expand Up @@ -35,6 +38,7 @@
(if (equal? parsed expected)
(begin
(printf "祥子:~a\n" response)
(displayln "------------------------------")
(run-challenge (cdr test-cases)))
(begin
(printf "祥子:~a\n" (random-response incorrect-responses)))))))))
Expand Down

0 comments on commit 67f3c6c

Please sign in to comment.