Skip to content

Add a print sanity function #1030

@vkarak

Description

@vkarak

It would be quite useful for debugging sanity expressions to have deferrable version of print that would print its arguments and then return them, so that you insert it anywhere in a sanity expression:

self.sanity_patterns = sn.assert_eq(sn.count(sn.extract_all(...)), 10)

# print the extracted elements
self.sanity_patterns = sn.assert_eq(sn.count(sn.print(sn.extract_all(...))), 10)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions