diff options
Diffstat (limited to 'snakemake-test.el')
-rw-r--r-- | snakemake-test.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/snakemake-test.el b/snakemake-test.el index f70b284..25713af 100644 --- a/snakemake-test.el +++ b/snakemake-test.el @@ -763,6 +763,29 @@ rule abc: (let ((default-directory "subdir")) (snakemake-snakefile-directory))))))) +(ert-deftest snakemake-test-split-lines () + (should + (equal '("abc" "123") + (snakemake--split-lines "\ +abc +123 +two words"))) + (should + (equal '("abc" "123") + (snakemake--split-lines "\ +abc + +123 + +two words"))) + (should + (equal '("abc") + (snakemake--split-lines "\ +abc +123 +two words" + 'remove-num)))) + (ert-deftest snakemake-test-rule-targets () (should (equal '("aa" "bb" "dd_subdir") |