Skip to content

Commit

Permalink
Remove cross-version test, re-enable test for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
krl committed Oct 22, 2024
1 parent fb86875 commit 2bc4da9
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions clar2wasm/src/words/equal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1267,14 +1267,11 @@ mod tests {
}

#[test]
fn index_of_complex_type_versions() {
let snippet = "(index-of
(list (list (err 7))
(list (ok 3)))
(list (err 7)))";
let v1 = evaluate_at(snippet, StacksEpochId::latest(), ClarityVersion::Clarity1);
let v2 = evaluate_at(snippet, StacksEpochId::latest(), ClarityVersion::Clarity2);
assert_eq!(v1, v2);
fn index_of_complex_type() {
crosscheck(
"(index-of (list (list (ok 2) (err 5)) (list (ok 42)) (list (err 7))) (list (err 7)))",
Ok(Some(Value::some(Value::UInt(2)).unwrap())),
);
}

//
Expand All @@ -1287,17 +1284,6 @@ mod tests {
use super::*;
use crate::tools::crosscheck;

#[test]
// TODO: see issue #496.
// The test below should pass when running it in ClarityV1.
// It should be removed from this module when the issue is fixed.
fn index_of_complex_type() {
crosscheck(
"(index-of (list (list (ok 2) (err 5)) (list (ok 42)) (list (err 7))) (list (err 7)))",
Ok(Some(Value::some(Value::UInt(2)).unwrap())),
);
}

#[test]
fn index_of_alias_list_zero_len() {
let mut env = TestEnvironment::default();
Expand Down

0 comments on commit 2bc4da9

Please sign in to comment.