summary refs log tree commit diff stats
path: root/nimpretty/tests/wrong_ind.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-08-20 16:03:04 +0200
committerGitHub <noreply@github.com>2019-08-20 16:03:04 +0200
commitd00c8febeec15c4d1503d506474b24e7653eecc5 (patch)
treeabc07b1e3991f51d5dafb24e88fafacb0082794e /nimpretty/tests/wrong_ind.nim
parentb1b0960c36540708c77b6e5c950810ee1efb0b12 (diff)
parentceb742351af3aa9caecd4828756ea3108806be52 (diff)
downloadNim-d00c8febeec15c4d1503d506474b24e7653eecc5.tar.gz
Nimpretty: fix #11937 (#11978)
* cosmetic improvements

* remove unused imports
* make 'openPars' and 'closedPars' more readable

* nimpretty: fix #11937 (wrong indentation)
Diffstat (limited to 'nimpretty/tests/wrong_ind.nim')
-rw-r--r--nimpretty/tests/wrong_ind.nim38
1 files changed, 38 insertions, 0 deletions
diff --git a/nimpretty/tests/wrong_ind.nim b/nimpretty/tests/wrong_ind.nim
index 930f696bb..3c7544cdb 100644
--- a/nimpretty/tests/wrong_ind.nim
+++ b/nimpretty/tests/wrong_ind.nim
@@ -71,3 +71,41 @@ proc a() =
 
   # comment 2
   discard
+
+
+proc i11937() =
+    result = %*
+        {
+            "_comment": "pbreports-style JSON",
+            "attributes": [],
+            "dataset_uuids": [],
+            "id": "microbial_asm_polishing_report",
+            "plotGroups": [],
+            "tables": [
+                {
+                "columns": [
+                    {
+                        "header": "Contig",
+                        "id": "microbial",
+                        "values": values_contig
+                    },
+                    {
+                        "header": "Length",
+                        "id": "microbial",
+                        "values": values_length
+                    },
+                    {
+                        "header": "Circular?",
+                        "id": "microbial",
+                        "values": values_circular
+                    }
+                ],
+                "id": "microbial_asm_polishing_report.contigs_table",
+                "title": "Polished contigs from Microbial Assembly"
+                },
+            ],
+            "tags": [],
+            "title": "Microbial Assembly Polishing Report",
+            "uuid": uuid,
+            "version": version
+        }