Skip to content

Commit

Permalink
fix: more parse errors in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas authored and KtorZ committed Aug 25, 2024
1 parent f94e40d commit 7984024
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/aiken-project/src/blueprint/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ mod tests {
fn mint_basic() {
assert_validator!(
r#"
validator {
fn mint(redeemer: Data, ctx: Data) {
validator thing {
mint(redeemer: Data, ctx: Data) {
True
}
}
Expand All @@ -401,8 +401,8 @@ mod tests {
fn mint_parameterized() {
assert_validator!(
r#"
validator(utxo_ref: Int) {
fn mint(redeemer: Data, ctx: Data) {
validator thing(utxo_ref: Int) {
mint(redeemer: Data, ctx: Data) {
True
}
}
Expand Down Expand Up @@ -444,8 +444,8 @@ mod tests {
Abort
}
validator {
fn simplified_hydra(datum: State, redeemer: Input, ctx: Data) {
validator simplified_hydra {
spend(datum: State, redeemer: Input, ctx: Data) {
True
}
}
Expand All @@ -457,8 +457,8 @@ mod tests {
fn tuples() {
assert_validator!(
r#"
validator {
fn tuples(datum: (Int, ByteArray), redeemer: (Int, Int, Int), ctx: Void) {
validator tuples {
spend(datum: (Int, ByteArray), redeemer: (Int, Int, Int), ctx: Void) {
True
}
}
Expand All @@ -480,8 +480,8 @@ mod tests {
Infinite
}
validator {
fn generics(redeemer: Either<ByteArray, Interval<Int>>, ctx: Void) {
validator generics {
spend(redeemer: Either<ByteArray, Interval<Int>>, ctx: Void) {
True
}
}
Expand Down Expand Up @@ -512,8 +512,8 @@ mod tests {
type UUID { UUID }
validator {
fn list_2_tuples_as_list(redeemer: Dict<UUID, Int>, ctx: Void) {
validator list_2_tuples_as_list {
mint(redeemer: Dict<UUID, Int>, ctx: Void) {
True
}
}
Expand Down

0 comments on commit 7984024

Please sign in to comment.