Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
隱藏空白變更
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
文字樣式
變更外觀
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
11 年前
差異永不過期
清除
匯出
分享
解釋
0 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
36 行
全部複製
1 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
37 行
全部複製
(module checker handin-server/checker
(module checker handin-server/checker
(require handin-server/grading-utils)
(require handin-server/grading-utils)
; Checks that submission is on time and that the user has submissions left
; Checks that submission is on time and that the user has submissions left
(pre:
(pre:
(check-deadline)
(check-deadline)
(check-max-submissions))
(check-max-submissions))
; Ends the report by adding the score and writes it in the user directory
; Ends the report by adding the score and writes it in the user directory
; This way, students can see their reports from the web interface.
; This way, students can see their reports from the web interface.
(post:
(post:
(add-score-to-report!)
(add-score-to-report!)
(write-report))
(write-report))
(check:
(check:
; Get timestamp of the submission and add it to header and report
; Get timestamp of the submission and add it to header and report
複製
已複製
複製
已複製
:language '(special intermediate)
(update-submission-timestamp!)
(update-submission-timestamp!)
(add-header-line! (get-submission-timestamp))
(add-header-line! (get-submission-timestamp))
(add-report-line! (get-submission-timestamp))
(add-report-line! (get-submission-timestamp))
; Acceptance tests: reject the submission if any of these tests fail
; Acceptance tests: reject the submission if any of these tests fail
(!test (foo 1) 3)
(!test (foo 1) 3)
; ...
; ...
; Grading
; Grading
; Initialize max score
; Initialize max score
(set-test-max-score! 100)
(set-test-max-score! 100)
; Failure discounts 25 points
; Failure discounts 25 points
( test "Sample case 1"
( test "Sample case 1"
"Error using even? predicate"
"Error using even? predicate"
(bar '(1 2 3 4) even?)
(bar '(1 2 3 4) even?)
'((2 4)(1 3))
'((2 4)(1 3))
25)))
25)))
已保存差異
原始文本
開啟檔案
(module checker handin-server/checker (require handin-server/grading-utils) ; Checks that submission is on time and that the user has submissions left (pre: (check-deadline) (check-max-submissions)) ; Ends the report by adding the score and writes it in the user directory ; This way, students can see their reports from the web interface. (post: (add-score-to-report!) (write-report)) (check: ; Get timestamp of the submission and add it to header and report (update-submission-timestamp!) (add-header-line! (get-submission-timestamp)) (add-report-line! (get-submission-timestamp)) ; Acceptance tests: reject the submission if any of these tests fail (!test (foo 1) 3) ; ... ; Grading ; Initialize max score (set-test-max-score! 100) ; Failure discounts 25 points ( test "Sample case 1" "Error using even? predicate" (bar '(1 2 3 4) even?) '((2 4)(1 3)) 25)))
更改後文本
開啟檔案
(module checker handin-server/checker (require handin-server/grading-utils) ; Checks that submission is on time and that the user has submissions left (pre: (check-deadline) (check-max-submissions)) ; Ends the report by adding the score and writes it in the user directory ; This way, students can see their reports from the web interface. (post: (add-score-to-report!) (write-report)) (check: ; Get timestamp of the submission and add it to header and report :language '(special intermediate) (update-submission-timestamp!) (add-header-line! (get-submission-timestamp)) (add-report-line! (get-submission-timestamp)) ; Acceptance tests: reject the submission if any of these tests fail (!test (foo 1) 3) ; ... ; Grading ; Initialize max score (set-test-max-score! 100) ; Failure discounts 25 points ( test "Sample case 1" "Error using even? predicate" (bar '(1 2 3 4) even?) '((2 4)(1 3)) 25)))
尋找差異