aboutsummaryrefslogtreecommitdiff
path: root/snakemake-test.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-05-03 02:19:14 -0400
committerKyle Meyer <kyle@kyleam.com>2016-05-03 02:24:00 -0400
commit2e659ce0982c07c79bccc7ac322444a6f97179ee (patch)
tree5e163efd98d60d4b52f853bf450b3a5c9e00e055 /snakemake-test.el
parent5350b3b4e88e29ce4c51c97f2638e0e9f794b7cf (diff)
downloadsnakemake-mode-2e659ce0982c07c79bccc7ac322444a6f97179ee.tar.gz
Be more lenient with spacing in regexps
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
"