Added more tests
This commit is contained in:
parent
a48f2868fb
commit
1b99722cd8
7 changed files with 32 additions and 6 deletions
13
src/errors/InvalidInstruction.go
Normal file
13
src/errors/InvalidInstruction.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue