mirror of
https://github.com/dnpm-dip/mv64e-mtb-dto-go.git
synced 2025-07-01 18:32:55 +00:00
Initial commit
This commit is contained in:
17
mtb_test.go
Normal file
17
mtb_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package mtb
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"testing"
|
||||
)
|
||||
|
||||
//go:embed tests/mv64e-mtb-fake-patient.json
|
||||
var fakeMtbData []byte
|
||||
|
||||
func TestShouldDeserializeJson(t *testing.T) {
|
||||
_, err := UnmarshalMtb(fakeMtbData)
|
||||
|
||||
if err != nil {
|
||||
t.Errorf("Cannot deserialize MTB file")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user