Skip to content

Commit 6a655c1

Browse files
tojoqkjeapostrophe
authored andcommitted
Update checkbox-group test to check #:wrap
1 parent 7c20447 commit 6a655c1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

web-server-test/tests/web-server/formlets-test.rkt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,16 @@
330330
(test-display (checkbox-group
331331
(list 1 2 3)
332332
#:display number->string
333+
#:wrap (λ (input display) (list display input))
333334
#:checked? even?
334335
#:attributes (λ (e) (list (list 'plus-one (number->string (add1 e)))))))
335-
'((input ((name "input_0") (type "checkbox") (value "0") (plus-one "2")))
336-
"1"
337-
(input ((name "input_0") (type "checkbox") (value "1") (checked "true") (plus-one "3")))
336+
'("1"
337+
(input ((name "input_0") (type "checkbox") (value "0") (plus-one "2")))
338338
"2"
339-
(input ((name "input_0") (type "checkbox") (value "2") (plus-one "4")))
340-
"3"))
341-
339+
(input ((name "input_0") (type "checkbox") (value "1") (checked "true") (plus-one "3")))
340+
"3"
341+
(input ((name "input_0") (type "checkbox") (value "2") (plus-one "4")))))
342+
342343
; submit
343344
(test-equal? "submit"
344345
(->cons (test-process (submit #"start") (list (make-binding:form #"input_0" #"value"))))

0 commit comments

Comments
 (0)