mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix up the SWIG wrapper for GncOptionDBPtr.
Thanks to Flexo@stackoverflow for https://stackoverflow.com/questions/27693812/how-to-handle-unique-ptrs-with-swig 5 years later, why isn't this in SWIG yet?
This commit is contained in:
@@ -37,10 +37,9 @@
|
||||
|
||||
(define (test-gnc-make-text-option)
|
||||
(test-begin "test-gnc-test-string-option")
|
||||
(let* ((option-db (new-GncOptionDB))
|
||||
(let* ((option-db (gnc-option-db-new))
|
||||
(string-opt (gnc-register-string-option option-db "foo" "bar" "baz"
|
||||
"Phony Option" "waldo")))
|
||||
(test-equal (GncOptionDB-lookup-option option-db "foo" "bar") "waldo")
|
||||
(delete-GncOptionDB option-db))
|
||||
(test-equal (GncOptionDB-lookup-option (GncOptionDBPtr-get option-db) "foo" "bar") "waldo"))
|
||||
|
||||
(test-end "test-gnc-make-string-option"))
|
||||
|
||||
Reference in New Issue
Block a user