mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: restore test_interface_struct_from_mut_array() (#15018)
This commit is contained in:
@ -85,8 +85,6 @@ fn test_interface_struct_from_array() {
|
|||||||
assert bazs[1].sp.say_hello() == "Hello, My name is Bob and I'm the bawz"
|
assert bazs[1].sp.say_hello() == "Hello, My name is Bob and I'm the bawz"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
// TODO: fix this too; currently with V 0.1.30 7426544 produces: `V panic: as cast: cannot cast 200 to 197`
|
|
||||||
fn test_interface_struct_from_mut_array() {
|
fn test_interface_struct_from_mut_array() {
|
||||||
mut bazs := [
|
mut bazs := [
|
||||||
Baz{
|
Baz{
|
||||||
@ -99,7 +97,7 @@ fn test_interface_struct_from_mut_array() {
|
|||||||
sp: Boss{
|
sp: Boss{
|
||||||
name: 'Bob'
|
name: 'Bob'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
bazs[0].sp = Boss{
|
bazs[0].sp = Boss{
|
||||||
@ -111,7 +109,6 @@ fn test_interface_struct_from_mut_array() {
|
|||||||
breed: 'Doggy Doo'
|
breed: 'Doggy Doo'
|
||||||
}
|
}
|
||||||
|
|
||||||
assert bazs[0].sp.say_hello() == 'Hello, My name is Ross and I\'m the bawz'
|
assert bazs[0].sp.say_hello() == "Hello, My name is Ross and I'm the bawz"
|
||||||
assert bazs[1].sp.say_hello() == 'Meow meow Doggy the Doggy Doo meow'
|
assert bazs[1].sp.say_hello() == 'Meow meow Doggy the Doggy Doo meow'
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
Reference in New Issue
Block a user