Refactors:

Add test 40
refactor how we get data type from type
Call contains type now to handle certain record cases
This commit is contained in:
Kasey White
2023-01-09 01:44:51 -05:00
committed by Lucas
parent 2b26d9a0c1
commit 1721c3945b
6 changed files with 88 additions and 123 deletions

View File

@@ -0,0 +1,5 @@
# This file was generated by Aiken
# You typically do not need to edit this file
requirements = []
packages = []

View File

@@ -0,0 +1,2 @@
name = "aiken-lang/acceptance_test_039"
version = "0.0.0"

View File

@@ -0,0 +1,16 @@
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_owner1(){
let initial_car: Data = Ford{remote_connect: #[], owner: #[], wheels: 4, truck_bed_limit: 10000}
assert Ford{ owner, ..} = initial_car
owner == #[]
}