1
0
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:
yuyi 2022-07-11 12:57:14 +08:00 committed by GitHub
parent a331cf577a
commit 7ff20c09ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}
/*
// 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() {
mut bazs := [
Baz{
@ -99,7 +97,7 @@ fn test_interface_struct_from_mut_array() {
sp: Boss{
name: 'Bob'
}
}
},
]
bazs[0].sp = Boss{
@ -111,7 +109,6 @@ fn test_interface_struct_from_mut_array() {
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'
}
*/