]> git.eshelyaron.com Git - emacs.git/commit
Correct implementation of `sql-set-product-feature' (Bug#30494).
authorMichael R. Mauger <michael@mauger.com>
Thu, 21 Feb 2019 03:13:51 +0000 (22:13 -0500)
committerMichael R. Mauger <michael@mauger.com>
Thu, 21 Feb 2019 03:13:51 +0000 (22:13 -0500)
commitc124d5323c05a4010db9b2d330575d029936ade1
tree9973520a2c520ed0f378690d0996c2b0b3a53e54
parent4d91e6469828d2b934c959de5932ad5a048ddfd5
Correct implementation of `sql-set-product-feature' (Bug#30494).

* lisp.progmodes/sql.el (sql-add-product): Correct argument spec.
(sql-set-product-feature): Handle all cases as intended.
(sql-get-product-feature): Fetch varaiable value by `eval'.
* test/lisp/progmodes/sql-tests.el (sql-test-feature-value-[a-d]):
New test variables.
(sql-test-product-feature-harness): New test macro.
(sql-test-add-product, sql-test-add-existing-product)
(sql-test-set-feature, sql-test-set-indirect-feature)
(sql-test-set-existing-feature)
(sql-test-set-existing-indirect-feature)
(sql-test-set-missing-product, sql-test-get-feature)
(sql-test-get-indirect-feature, sql-test-get-missing-product)
(sql-test-get-missing-feature)
(sql-test-get-missing-indirect-feature): New ERT tests
lisp/progmodes/sql.el
test/lisp/progmodes/sql-tests.el