⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 port-tests.scm

📁 Scheme跨平台编译器
💻 SCM
字号:
(use srfi-1)(define *text* #<<EOFthis is a test<foof> #;33> (let ((in (open-input-string ""))) (close-input-port in)       (read-char in)) [09:40]<foof> Error: (read-char) port already closed: #<input port "(string)"><foof> #;33> (let ((in (open-input-string ""))) (close-input-port in)       (read-line in))<foof> Error: call of non-procedure: #t<foof> ... that's a little odd<Bunny351> yuck. [09:44]<Bunny351> double yuck. [10:00]<sjamaan> yuck squared! [10:01]<Bunny351> yuck powered by yuck<Bunny351> (to the power of yuck, of course) [10:02]<pbusser3> My yuck is bigger than yours!!!<foof> yuck!<foof> (that's a factorial)<sjamaan> heh<sjamaan> I think you outyucked us all [10:03]<foof> well, for large enough values of yuck, yuck! ~= yuck^yuck [10:04]ERC> EOF)(define p (open-input-string *text*))(assert (string=? "this is a test" (read-line p)))(assert (string=?   "<foof> #;33> (let ((in (open-input-string \"\"))) (close-input-port in)"  (read-line p)))(assert (= 20 (length (read-lines (open-input-string *text*)))))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -