summaryrefslogtreecommitdiff
path: root/snakemake-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'snakemake-test.el')
-rw-r--r--snakemake-test.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/snakemake-test.el b/snakemake-test.el
index 3bac276..f092756 100644
--- a/snakemake-test.el
+++ b/snakemake-test.el
@@ -111,6 +111,13 @@ rule:
" rule abc:"
(snakemake-indent-line)
(buffer-string))))
+ (should
+ (string=
+ "rule abc :"
+ (snakemake-with-temp-text
+ " rule abc :"
+ (snakemake-indent-line)
+ (buffer-string))))
;; Don't move point if beyond column 0.
(should
@@ -213,6 +220,19 @@ rule abc:
"
rule abc:
input: 'infile'
+ output :"
+ (snakemake-with-temp-text
+ "
+rule abc:
+ input: 'infile'
+<point>output :"
+ (snakemake-indent-line)
+ (buffer-string))))
+ (should
+ (string=
+ "
+rule abc:
+ input: 'infile'
output:"
(snakemake-with-temp-text
"