server/pkg/adapter/singbox/rule_test.go
Chang lue Tsen 8addcc584b init: 1.0.0
2025-04-25 12:08:29 +09:00

16 lines
294 B
Go

package singbox
import (
"fmt"
"testing"
)
func TestAdapterToSingboxRule(t *testing.T) {
rules := []string{
"DOMAIN,example.com,DIRECT",
"DOMAIN-SUFFIX,google.com,智能线路",
}
result := adapterToSingboxRule(rules)
fmt.Printf("TestAdapterToSingboxRule: result: %+v\n", result)
}