Bug #2070

Call tool does not support the value false (and documentation is lacking)

Added by J. Moringen over 9 years ago. Updated over 9 years ago.

Status:ResolvedStart date:11/03/2014
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:Common Lisp Tools
Target version:rsb-0.11

Associated revisions

Revision d6e5d8f9
Added by J. Moringen over 9 years ago

Improved Boolean support in parse-{payload,call}-spec common/event.lisp

refs #2070

`parse-payload-spec' and the new function `parse-call-spec' accept
"true" and "false" and report errors properly.

  • common/conditions.lisp (call-specification-error): new condition;
    signal when parsing a call specification fails
  • common/event.lisp (parse-payload-spec): accept "true" and "false" for
    Boolean values
    (parse-call-spec): new function; moved here from call/main.lisp; parse
    an RPC specification
  • common/package.lisp (package rsb.common): added exported symbols
    call-specification-error, call-specification-error-specification and
    parse-call-spec
  • test/common/event.lisp: new file; contains tests for event and payload
    parsing
  • cl-rsb-common.asd (system cl-rsb-common-test): added file
    test/common/event.lisp
  • call/main.lisp (make-help-string): mention "true" and "false"
    (main): use `parse-call-spec' for parsing and checking
  • send/main.lisp (make-help-string): mention "true" and "false"
  • CMakeLists.txt: added test cases with "true" and "false" payloads for
    call and send tools

Revision 2861b43a
Added by J. Moringen over 9 years ago

Mention Boolean values in {call,send}.rst

fixes #2070

  • call.rst (Description): mention syntax for Boolean values
  • send.rst (Description): likewise

History

#1 Updated by J. Moringen over 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF