test(aiken-lang): add a new test for list edge case in when clause patterns

This commit is contained in:
microproofs
2023-08-08 20:47:35 -04:00
parent 252f68de17
commit eda388fb29
7 changed files with 167 additions and 28 deletions

View File

@@ -100,7 +100,7 @@ pub struct ClauseProperties {
pub enum SpecificClause {
ConstrClause,
ListClause {
current_index: i64,
defined_tails_index: i64,
defined_tails: Vec<String>,
checked_index: i64,
},
@@ -119,7 +119,7 @@ impl ClauseProperties {
final_clause: false,
needs_constr_var: false,
specific_clause: SpecificClause::ListClause {
current_index: 0,
defined_tails_index: 0,
defined_tails: vec![subject_name],
checked_index: -1,
},
@@ -161,7 +161,7 @@ impl ClauseProperties {
final_clause,
needs_constr_var: false,
specific_clause: SpecificClause::ListClause {
current_index: 0,
defined_tails_index: 0,
defined_tails: vec![],
checked_index: -1,
},