Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
공백 변경 숨기기
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
텍스트 스타일
모양 변경
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 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)))
비교하기