Skip to content

Commit

Permalink
Test moved from Default (Prague) to Cancun due to jumpdest deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
gzanitti committed Oct 20, 2023
1 parent 0acdf8c commit 57e8df5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions etk-asm/src/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl Program {
/// "#;
///
/// let mut output = Vec::new();
/// let mut ingest = Ingest::new(&mut output, HardFork::default());
/// let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
/// ingest.ingest("./example.etk", &text)?;
///
/// # let expected = hex!("6100035b");
Expand Down Expand Up @@ -406,7 +406,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;
assert_eq!(output, hex!("6001602a6002"));

Expand Down Expand Up @@ -435,7 +435,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;

assert_eq!(output, hex!("60015b586000566002"));
Expand Down Expand Up @@ -464,7 +464,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
let err = ingest.ingest(root, &text).unwrap_err();

assert_matches!(
Expand All @@ -489,7 +489,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;
assert_eq!(output, hex!("6001deadbeef0102f66002"));

Expand All @@ -513,7 +513,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;
assert_eq!(output, hex!("6001deadbeef0102f65b600960ff"));

Expand All @@ -535,7 +535,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;

let expected = hex!("61001caaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5b");
Expand Down Expand Up @@ -578,7 +578,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;

let expected = hex!("620000096200000e5b5b6008600e5b610008610009");
Expand Down Expand Up @@ -627,7 +627,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
ingest.ingest(root, &text)?;

let expected = hex!("620000155b58600b5b5b61000b6100035b600360045b62000004");
Expand All @@ -648,7 +648,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
let root = std::env::current_exe().unwrap();
let err = ingest.ingest(root, &text).unwrap_err();

Expand All @@ -669,7 +669,7 @@ mod tests {
);

let mut output = Vec::new();
let mut ingest = Ingest::new(&mut output, HardFork::default());
let mut ingest = Ingest::new(&mut output, HardFork::Cancun);
let err = ingest.ingest(root, &text).unwrap_err();

assert_matches!(err, Error::RecursionLimit { .. });
Expand Down

0 comments on commit 57e8df5

Please sign in to comment.