reflect: uncomment a another test the fails and doc some that don't
Этот коммит содержится в:
родитель
0c4f9d1f19
коммит
9e7882b1b7
1 изменённых файлов: 6 добавлений и 6 удалений
|
@ -1696,7 +1696,7 @@ func TestNilMap(t *testing.T) {
|
||||||
mv.SetMapIndex(ValueOf("hi"), Value{})
|
mv.SetMapIndex(ValueOf("hi"), Value{})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* // TODO(tinygo): missing chan reflect support
|
||||||
|
|
||||||
func TestChan(t *testing.T) {
|
func TestChan(t *testing.T) {
|
||||||
for loop := 0; loop < 2; loop++ {
|
for loop := 0; loop < 2; loop++ {
|
||||||
|
@ -2166,6 +2166,8 @@ func fmtSelect(info []caseInfo) string {
|
||||||
return buf.String()
|
return buf.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(tinygo): missing func/method/call support
|
||||||
|
|
||||||
type two [2]uintptr
|
type two [2]uintptr
|
||||||
|
|
||||||
// Difficult test for function call because of
|
// Difficult test for function call because of
|
||||||
|
@ -2490,7 +2492,7 @@ func (p *Point) Int32Method(x int32) int32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
// TODO(tinygo): missing method support
|
||||||
func TestMethod(t *testing.T) {
|
func TestMethod(t *testing.T) {
|
||||||
// Non-curried method of type.
|
// Non-curried method of type.
|
||||||
p := Point{3, 4}
|
p := Point{3, 4}
|
||||||
|
@ -2947,13 +2949,13 @@ func TestInterfaceSet(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
type T1 struct {
|
type T1 struct {
|
||||||
a string
|
a string
|
||||||
int
|
int
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
func TestAnonymousFields(t *testing.T) {
|
func TestAnonymousFields(t *testing.T) {
|
||||||
var field StructField
|
var field StructField
|
||||||
var ok bool
|
var ok bool
|
||||||
|
@ -2967,8 +2969,6 @@ func TestAnonymousFields(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
type FTest struct {
|
type FTest struct {
|
||||||
s any
|
s any
|
||||||
name string
|
name string
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче