-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cases for math #65
Comments
Where you have just maths & variables, I guess things like:
Since we're just checking construction and serialisation at this stage this is perhaps slightly overkill (the last in particular) but they're the sort of thing we'll need when considering units conversions, math evaluation, etc. With connections, a few of the simple multi-variable cases above, but where the variables come from different components. Again, since we're not yet evaluating, handling source variables several connections away is probably overkill. |
From the discussion on pull #66 and resulting changes to the current thinking doc, the consensus was to move forward with treating MathML as a string. Some possible testing permutations would then be:
I propose modifying the use-cases document to explicitly capture a few of these (more permutations will also be tested).
|
seems like a good idea to me. |
If we're just treating maths as opaque strings and not resolving variables or units references, those cases seem... difficult to distinguish? And we're not doing validation at all yet. Although I agree they're the sort of thing that would be useful longer term! |
True, this may be overkill for the current "Create" step with maths strings- we can cull some (or all but one) of my proposed cases if you think that is more appropriate. But, as you say, these use-cases are recycled in the subsequent "Modify/Load/Validate" steps and could be tests for more complete MathML handling downstream. So it might not hurt to flesh them out now. |
If I recall correctly (from a previous issue/PR), we only want to have tests that refer to what we are currently working on. If, down the line, we realise that we need more tests (as we will clearly need here at some point), then we add those tests. (@hsorby, I believe I remember this from one of your comments, so please feel free to correct me if I got/remember it wrong.) |
Yes @agarny you are right, we only want to write tests for what we are currently doing and not what we think we will do. |
OK that sounds reasonable. Should we pare the use-cases back to just the "a"s on each item above? I.e.,
|
Update from upstream
It would be useful to add use-cases for math to the current list (i.e., 1.xii and 1.xiii in the current list at http://libcellml.readthedocs.org/en/latest/usecases.html)
The text was updated successfully, but these errors were encountered: