Generic Representation Issues
See original GitHub issueI’m trying to use this for snapshotting, but running into issues with GenericRepr
and double quoting problems when asserting the match. I tried master
since it appeared to have fixed this and run into a new issue, the GenericRepr
isn’t used and instead it’s directly datetime.date(...)
or Decimal(...)
. The problem with this is that these types were never imported to start with, so I run into type issues.
Is there a reason these are representations in Python instead of a multiline string representation like in Jest? Jest only handles formatting and compares the formatted objects which makes things simpler (e.g. does this string equal the other), while the complexity of this project seems a bit higher from equality checks.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:19 (6 by maintainers)
Top Results From Across the Web
Generic Representation - an overview | ScienceDirect Topics
The representation generic VF*NO processors (HW, SW, FW included) is represented as: a. Single VF: Single NO or SVSN (Multiple processes included in...
Read more >Issues with Consistent Generic Representations ... - IEEE Xplore
Abstract—This paper discusses whether truly generic representations of radars, or other sensors are possible. It concludes that they are probably not, ...
Read more >(PDF) Generic Representations and the Generic Grid
These issues consist of elements, knowledge structures, and design ... The second concept, the Generic representation, models generic and ...
Read more >Generic Intent Representation in Web Search - Microsoft
Generic Intent Representation, Query Embedding, User Intent. ... of-vocabulary issues, we employ a convolutional neural network.
Read more >On Local Coefficients for Non-generic Representations of ...
On Local Coefficients for Non-generic Representations of Some Classical Groups - Volume 116 Issue 2.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Some cons of storing strings instead of objects:
The only pro I see is simplifying the comparison code. I think they did it that way in Jest because in JavaScript you can’t override
==
.I agree that #82 should have most of these issues solved. However, if @blakeembrey can produce a test case that fails consistently with the new logic, the argument of serializing down to a string certainly does have merit.
I’ll leave this issue open for the time being pending seeing those test cases.