package osc

import "testing"

func TestParseMessageAddress(t *testing.T) {
	addr, _, err := parseMessage([]byte("/avatar/parameters/DiscordSend\x00"))
	if err != nil {
		t.Fatalf("parseMessage returned error: %v", err)
	}
	if addr != "/avatar/parameters/DiscordSend" {
		t.Fatalf("unexpected address: %q", addr)
	}
}

