fix interface test
parent
050ec5d9e3
commit
2ac074655f
|
@ -1,8 +1,7 @@
|
|||
|
||||
fn test_cstring(){
|
||||
w := c'world'
|
||||
hlen := C.strlen(c'hello')
|
||||
wlen := C.strlen(w)
|
||||
assert hlen == 5
|
||||
assert wlen == 5
|
||||
fn test_cstring() {
|
||||
w := c'world'
|
||||
hlen := C.strlen(c'hello')
|
||||
wlen := C.strlen(w)
|
||||
assert hlen == 5
|
||||
assert wlen == 5
|
||||
}
|
||||
|
|
|
@ -22,6 +22,8 @@ fn (d Dog) name() string {
|
|||
return 'Dog'
|
||||
}
|
||||
|
||||
fn test_todo() {}
|
||||
|
||||
/*
|
||||
interface Speaker {
|
||||
name ()string
|
||||
|
|
Loading…
Reference in New Issue