Skip to content

Commit

Permalink
few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Oct 24, 2024
1 parent 24af8cd commit bd14a97
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v0.5/fastn-p1/t/002-few-comments.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;; this is first comment

;; this is second comment
;; this is multiline comment

;; this is one more comment, this does not start at the beginning of the line
35 changes: 35 additions & 0 deletions v0.5/fastn-p1/t/002-few-comments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"doc_name": "foo",
"items": [
{
"span": {
"end": 25,
"start": 0
},
"value": "Comment"
},
{
"span": {
"end": 52,
"start": 26
},
"value": "Comment"
},
{
"span": {
"end": 81,
"start": 52
},
"value": "Comment"
},
{
"span": {
"end": 162,
"start": 84
},
"value": "Comment"
}
],
"line_starts": [],
"module_doc": null
}
6 changes: 6 additions & 0 deletions v0.5/fastn-p1/t/003-module-doc.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;; this is a comment

;-; this is some module doc
;-; multiline module docs!

;; some more comment
24 changes: 24 additions & 0 deletions v0.5/fastn-p1/t/003-module-doc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"doc_name": "foo",
"items": [
{
"span": {
"end": 21,
"start": 0
},
"value": "Comment"
},
{
"span": {
"end": 99,
"start": 78
},
"value": "Comment"
}
],
"line_starts": [],
"module_doc": {
"end": 77,
"start": 22
}
}

0 comments on commit bd14a97

Please sign in to comment.