Skip to content

Commit

Permalink
Deprecation of langspec testcases (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu authored Aug 25, 2022
1 parent 8419aeb commit 87dfd55
Showing 1 changed file with 14 additions and 0 deletions.
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 the heuristic sanity check throws 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= | |

0 comments on commit 87dfd55

Please sign in to comment.