chore: fmt acceptance test 40

This commit is contained in:
rvcas
2023-01-13 14:55:18 -05:00
parent 7b023911af
commit c6fe5235fe
5 changed files with 16 additions and 14 deletions

View File

@@ -1,20 +1,22 @@
pub type Car{
Honda { remote_connect: ByteArray, owner: ByteArray, wheels: Int}
Ford { remote_connect: ByteArray, owner: ByteArray, wheels: Int, truck_bed_limit: Int }
pub type Car {
Honda { remote_connect: ByteArray, owner: ByteArray, wheels: Int }
Ford {
remote_connect: ByteArray,
owner: ByteArray,
wheels: Int,
truck_bed_limit: Int,
}
}
// test update_owner2_should_fail(){
// let initial_car: Data = Ford{remote_connect: #[], owner: #[], wheels: 4, truck_bed_limit: 10000}
// assert Honda{ owner, ..} = initial_car
// owner == #[]
// }
test update_owner1(){
let initial_car: Data = Ford{remote_connect: #[], owner: #[], wheels: 4, truck_bed_limit: 10000}
assert Ford{ owner, ..} = initial_car
test update_owner1() {
let initial_car: Data =
Ford { remote_connect: #[], owner: #[], wheels: 4, truck_bed_limit: 10000 }
assert Ford { owner, .. } = initial_car
owner == #[]
}