-
Notifications
You must be signed in to change notification settings - Fork 76
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
Set up tests for AsObjects, for the AwkwardForth reader #637
Conversation
if all(uproot._util.from_module(x, "awkward") for x in basket_arrays.values()): | ||
if len(basket_arrays) == 0: | ||
output = numpy.array([], dtype=self.numpy_dtype) | ||
elif all( | ||
uproot._util.from_module(x, "awkward") for x in basket_arrays.values() | ||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an actual bug-fix, discovered while arranging these tests but otherwise unrelated to them.
@aryan26roy, this is a suite of test-stubs that you can use to set up test-driven development for adding Forth code. Only that which is tested by these tests needs to be developed as part of your project. The comments in the code with your name are cross-listed with the test numbers, so that you can plan which ones to solve when. By the end of your project, those comment lines should be removed (even the ones you can't do anything with, the "untested" ones). Let me know if it would be easier for you to merge your branch first or for me to merge this one first. The target is |
@pytest.mark.skip( | ||
reason="Implement non-memberwise std::map; we have a sample (map<string,double>)" | ||
) | ||
def test_nonmemberwise_asmap(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for me to implement non-memberwise std::map
in Python, so that you can develop Forth code for both the memberwise and non-memberwise cases. (Just for std::map
.) These four tests will be added to test_0637.
* 'all' can be satisfied by the empty set. * Concatenating an empty set of arrays is also bad. * Identified a sample of non-memberwise std::map; need to implement it. * And a few more, for better debugging. * Added the suite of tests. * Added comment-markers to indicate which tests address which lines of code.
No description provided.