From bd14a975921a4b88ddb109d9a51d96947be94fec Mon Sep 17 00:00:00 2001 From: Amit Upadhyay Date: Thu, 24 Oct 2024 14:20:23 +0530 Subject: [PATCH] few more tests --- v0.5/fastn-p1/t/002-few-comments.ftd | 6 +++++ v0.5/fastn-p1/t/002-few-comments.json | 35 +++++++++++++++++++++++++++ v0.5/fastn-p1/t/003-module-doc.ftd | 6 +++++ v0.5/fastn-p1/t/003-module-doc.json | 24 ++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 v0.5/fastn-p1/t/002-few-comments.ftd create mode 100644 v0.5/fastn-p1/t/002-few-comments.json create mode 100644 v0.5/fastn-p1/t/003-module-doc.ftd create mode 100644 v0.5/fastn-p1/t/003-module-doc.json diff --git a/v0.5/fastn-p1/t/002-few-comments.ftd b/v0.5/fastn-p1/t/002-few-comments.ftd new file mode 100644 index 000000000..644489a67 --- /dev/null +++ b/v0.5/fastn-p1/t/002-few-comments.ftd @@ -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 diff --git a/v0.5/fastn-p1/t/002-few-comments.json b/v0.5/fastn-p1/t/002-few-comments.json new file mode 100644 index 000000000..210145369 --- /dev/null +++ b/v0.5/fastn-p1/t/002-few-comments.json @@ -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 +} \ No newline at end of file diff --git a/v0.5/fastn-p1/t/003-module-doc.ftd b/v0.5/fastn-p1/t/003-module-doc.ftd new file mode 100644 index 000000000..568c85b46 --- /dev/null +++ b/v0.5/fastn-p1/t/003-module-doc.ftd @@ -0,0 +1,6 @@ +;; this is a comment + +;-; this is some module doc +;-; multiline module docs! + +;; some more comment \ No newline at end of file diff --git a/v0.5/fastn-p1/t/003-module-doc.json b/v0.5/fastn-p1/t/003-module-doc.json new file mode 100644 index 000000000..853392d09 --- /dev/null +++ b/v0.5/fastn-p1/t/003-module-doc.json @@ -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 + } +} \ No newline at end of file