15 lines
349 B
Go
15 lines
349 B
Go
|
|
package placement
|
||
|
|
|
||
|
|
import "testing"
|
||
|
|
|
||
|
|
func TestPreferReplyExternalIDKeepsNumeric(t *testing.T) {
|
||
|
|
got := PreferReplyExternalID("18123456789012345", "AbCdEf123")
|
||
|
|
if got != "18123456789012345" {
|
||
|
|
t.Fatalf("got %q", got)
|
||
|
|
}
|
||
|
|
got = PreferReplyExternalID("AbCdEf123", "18123456789012345")
|
||
|
|
if got != "18123456789012345" {
|
||
|
|
t.Fatalf("got %q", got)
|
||
|
|
}
|
||
|
|
}
|