Added more tests

This commit is contained in:
Eduard Urbach 2024-06-15 20:25:37 +02:00
parent a48f2868fb
commit 1b99722cd8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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)
}