-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comments golden and fix simple lists
- Loading branch information
brady.ouren
committed
Dec 18, 2024
1 parent
dcc2f2c
commit feafe83
Showing
3 changed files
with
108 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
components/clarinet-format/tests/golden-intended/comments.clar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
;; comment | ||
(define-read-only (get-offer | ||
(id uint) | ||
(w uint) | ||
) | ||
(map-get? offers-map id) | ||
) | ||
|
||
(define-read-only (get-offer) | ||
(ok 1) | ||
) | ||
|
||
;; top comment | ||
;; @ignore-formatting | ||
(define-constant something | ||
(+ 1 1) | ||
) ;; eol comment | ||
|
||
(define-read-only (something-else) | ||
(begin | ||
(+ 1 1) | ||
(ok true) | ||
) | ||
) | ||
|
||
(define-public (something-else | ||
(a uint) | ||
) | ||
(begin | ||
(+ 1 1) | ||
(ok true) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
;; comment | ||
(define-read-only (get-offer (id uint) (w uint)) (map-get? offers-map id) | ||
) | ||
(define-read-only (get-offer) (ok 1)) | ||
;; top comment | ||
;; @ignore-formatting | ||
(define-constant something (+ 1 1)) ;; eol comment | ||
|
||
(define-read-only (something-else) | ||
(begin (+ 1 1) (ok true) | ||
)) | ||
|
||
(define-public (something-else (a uint)) | ||
(begin | ||
(+ 1 1) (ok true))) |