penguin/golifehk

@golifehk bot in Telegram

datasources/cjlookup/humanumarts_test.go

raw · 285 bytes

package cjlookup

import (
	"testing"
)

func TestCUHARTLinks(t *testing.T) {
	s, err := Big5UrlParam("呀")
	if s != "%A7r" {
		t.Errorf("Faild to encode Big5 string: %A7r", err)
	}

	if SParams("caang4") != "s1=c&s2=aang&s3=4" {
		t.Error("Faild to parse s params for: caang4")
	}
}