Skip to content

Commit

Permalink
fixup atl dis-conjunction display, resolves #227 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkecarlsen authored Oct 2, 2023
1 parent 30eab54 commit c9627dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cgaal-engine/src/atl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ impl Display for Phi {
Phi::False => write!(f, "false"),
Phi::Proposition(id) => write!(f, "{}", id),
Phi::Not(formula) => write!(f, "!({})", formula),
Phi::Or(left, right) => write!(f, "({} | {})", left, right),
Phi::And(left, right) => write!(f, "({} & {})", left, right),
Phi::Or(left, right) => write!(f, "({} || {})", left, right),
Phi::And(left, right) => write!(f, "({} && {})", left, right),
Phi::DespiteNext { players, formula } => {
write!(f, "[[{}]] X {}", players.iter().join_with(","), formula)
}
Expand Down Expand Up @@ -400,6 +400,6 @@ mod test {
}),
until: Arc::new(False),
};
assert_eq!("<<0,1>> ((1 | !(2)) U false)", format!("{}", formula));
assert_eq!("<<0,1>> ((1 || !(2)) U false)", format!("{}", formula));
}
}

0 comments on commit c9627dd

Please sign in to comment.