-
Notifications
You must be signed in to change notification settings - Fork 0
test aleo types #4
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
base: aleo-types
Are you sure you want to change the base?
Conversation
iamalwaysuncomfortable
left a comment
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 good so far, it simply needs more tests to cover the other types in the package.
| auction_id: true, | ||
| }; | ||
|
|
||
| const actualTxFromAPI: Transaction = |
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.
We probably want to move all of the test data to a separate file.
| import { Transaction } from "../src/transaction"; | ||
| import { parseValueToJson } from "../src/parsers/plaintext"; | ||
|
|
||
| const exampleAuctionRecord = { |
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.
We should get several example records and test them!
iamalwaysuncomfortable
left a comment
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.
We should get some tests surrounding:
- Being Able to Parse Entire Execution and Deployment Transactions with These types
- Handle parsing a variety plaintext Literal types and complex struct and arrays returned by mappings via parseValueToJSON
- Mappings
Also we should add a Block type.
Add tests for Aleo types, validating that the defined types match real-world values. Adjust definitions accordingly.