One example of such an entry is for the SBT repository at
“deb https://dl.bintray.com/sbt/debian /”.
(type "C-c C-s stable RET")
(should-equal-buffer "deb http://deb.test/debian stable xxx # foo")))
+(ert-deftest apt-sources-list-test-change-suite-empty ()
+ (with-apt-sources-list "deb http://deb.test/debian stable main # foo"
+ (type "C-c C-s / RET")
+ (should-equal-buffer "deb http://deb.test/debian / # foo")
+ (type "C-c C-s unstable RET M-0 C-k xxx RET")
+ (should-equal-buffer "deb http://deb.test/debian unstable xxx # foo")))
+
(ert-deftest apt-sources-list-test-change-components ()
(with-apt-sources-list "deb http://deb.test/debian stable main # foo"
(type "C-c C-c M-0 C-k a SPC b")
(one-or-more (not (any " \t\n#"))))
(one-or-more blank)
(group
- (or (and (one-or-more (not (any " \t\n#"))) "/")
+ (or (and (zero-or-more (not (any " \t\n#"))) "/")
(and (zero-or-more (not (any " \t\n#")))
(not (any " \t\n/#"))
(one-or-more blank)