golden-tests
golden-tests copied to clipboard
Feature request: Make argument order configurable
Hi jfecher,
thank you for creating this nice testing utility (and documenting it well 💯 👍🏻 ). I enjoy using it.
There is one thing I would like to have: I am currently using the feature to add arguments to the called binary via the args
keyword. Here is an example test of mine:
lda #$2
sta $0
lsr $0
; args: 0 1
; expected stdout:
; pc |sp |a |x |y |C|Z|I|D|B|O|N
; 6 |0 |2 |0 |0 |0|0|0|0|0|0|0
;
; 0000: 01
The arguments I manually specify are always added before the test file. Would it be possible to make that configurable? For example with a special argument <input-file>
, that is substituted with the input-file by golden-tests. E.G. the args
line in my example would become ; args: <input-file> 0 1
.
If this suggestion is accepted, I can implement it :)