Added more tests

This commit is contained in:
2024-06-15 20:25:37 +02:00
parent 4776b4c14c
commit 864c9c7b43
7 changed files with 32 additions and 6 deletions

View File

@ -0,0 +1,13 @@
package errors
import "fmt"
// InvalidInstruction error is created when an instruction is not valid.
type InvalidInstruction struct {
Instruction string
}
// Error generates the string representation.
func (err *InvalidInstruction) Error() string {
return fmt.Sprintf("Invalid instruction '%s'", err.Instruction)
}