Skip to content

Add tests for custom functions #87

@capital-G

Description

@capital-G

Some things that should be tested

  • try to compile script after loading, so the user gets immediate feedback about script errors (and not only when they create a DynGen instance). If compilation fails we bail out instead of trying to update potentially lots of existing DynGen instances with an erroneous script (which would lead to lots of duplicate error messages). [i.e. the old existing script gets continued instead of replacing it with a faulty one]
  • bufRead and bufWrite should not map out-of-bound channel to channel 0; instead bufRead returns 0.0 and bufWrite simply does nothing.
  • in and out should not map out-of-bound channel to channel 0; instead in(chan) returns 0.0 and assigning to out(chan) does nothing.

Originally posted by @capital-G in #81 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions