mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-20 23:06:08 +00:00
simplify testing
This commit is contained in:
1 parent
3582b9d869
commit
fc63f0432c
99 files changed
+726
-817
No files matched your search
@@ -1,24 +0,0 @@
|
||||
package serial_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
. "github.com/v2ray/v2ray-core/common/serial"
|
||||
v2testing "github.com/v2ray/v2ray-core/testing"
|
||||
"github.com/v2ray/v2ray-core/testing/assert"
|
||||
)
|
||||
|
||||
type TestString struct {
|
||||
value string
|
||||
}
|
||||
|
||||
func (this *TestString) String() string {
|
||||
return this.value
|
||||
}
|
||||
|
||||
func TestNewStringSerial(t *testing.T) {
|
||||
v2testing.Current(t)
|
||||
|
||||
testString := &TestString{value: "abcd"}
|
||||
assert.String(NewStringT(testString)).Equals("abcd")
|
||||
}
|
||||
Reference in new issue
Block a user