RosettaCodeData/Task/Assertions/Racket/assertions-2.rkt

6 lines
83 B
Racket

#lang racket
(define x 80)
(unless (= x 42)
(error "a is not 42")) ; will error