Skip to content
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

Deprecation of langspec testcases #225

Merged
merged 5 commits into from
Aug 25, 2022
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions features/unit/program_sanity_check.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@unit.program_sanity_check
Feature: HeursticSanityCheck
Scenario Outline: Read a slice of bytes and heuristically decide if it look like program bytes
Given a base64 encoded program bytes for heuristic sanity check "<bytes>"
When I start heuristic sanity check over the bytes
Then if there exists an error, the error contains "<error>"

Examples:
| bytes | error |
| | empty program |
| RE43TUJNQ0w1SlEzUEZVUVM3VE1YNUFINEVFS09CSlZEVUY0VENWNldFUkFUS0ZMUUY0TVFVUFpUQQ== | get Algorand address |
| U0dPMUdLU3p5RTdJRVBJdFR4Q0J5dzl4OEZtbnJDRGV4aTkvY09VSk9pST0= | should not be b64 encoded |
| Q2FzdCBhIGNvbGQgZXllCm9uIGxpZmUsIG9uIGRlYXRoLgpIb3JzZW1hbiwgcGFzcyBieQ== | all ASCII printable characters |
| ASABASI= | |