Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar espacios en blanco
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Estilos de texto
Cambiar apariencia
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 11 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
0 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
36 líneas
Copiar todo
1 adición
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
37 líneas
Copiar todo
(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
Copiar
Copiado
Copiar
Copiado
: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)))
Diferencias guardadas
Texto original
Abrir archivo
(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)))
Texto modificado
Abrir archivo
(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)))
Encontrar la diferencia