Skip to content

Commit

Permalink
test(ir): useless test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhchchc committed Jul 2, 2024
1 parent 2601e04 commit 6b6c4f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ir/control_flow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ impl<E> ControlFlowGraph<(), E> {
mod tests {
use super::*;

#[test]
fn entry_point() {
let cfg = ControlFlowGraph::<(), ()>::from_edges(vec![]);
assert_eq!(cfg.entry_point(), ProgramCounter::ZERO);
}

fn build_cfg() -> ControlFlowGraph<(), ()> {
let edges = [
(0.into(), 1.into(), ()),
Expand Down

0 comments on commit 6b6c4f2

Please sign in to comment.