First split
This commit is contained in:
15
empty_test.go
Normal file
15
empty_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Package disasm provides tests for the Z80 disassembler implementation
|
||||
package disasm
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestEmptyData tests handling of empty data
|
||||
func TestEmptyData(t *testing.T) {
|
||||
d := New()
|
||||
_, err := d.Decode([]byte{})
|
||||
if err == nil {
|
||||
t.Errorf("expected error for empty data but got none")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user