You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/quad/main-typed-tests.rkt

11 lines
671 B
Racket

9 years ago
#lang typed/racket/base
(require typed/rackunit)
(require "main-typed.rkt" "quads-typed.rkt")
(check-equal? (input->nested-blocks (input #f (block #f "1" (block-break) "2")))
(list (list (list (list (quad 'word '#hash() '("1"))) (list (quad 'word '#hash() '("2")))))))
(check-equal? (input->nested-blocks (input #f (block #f "1" (column-break) "2")))
(list (list (list (list (quad 'word '#hash() '("1")))) (list (list (quad 'word '#hash() '("2")))))))
(check-equal? (list (list (list (list (quad 'word '#hash() '("1"))))) (list (list (list (quad 'word '#hash() '("2"))))))
(input->nested-blocks (input #f (block #f "1" (page-break) "2"))))