Skip to content

Commit

Permalink
Chore: fix tests after merge from main
Browse files Browse the repository at this point in the history
  • Loading branch information
kalzoo committed Jun 1, 2022
1 parent 87d84de commit a48b73e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ impl Instruction {
/// let mut instructions = program.to_instructions(true);
/// instructions.iter_mut().for_each(|inst| inst.apply_to_expressions(Expression::simplify));
///
/// assert_eq!(instructions[0].to_string(), String::from("SHIFT-PHASE 0 \"rf\" 4"))
/// assert_eq!(instructions[0].to_string(), String::from("SHIFT-PHASE 0 \"rf\" 4.0"))
///
/// ```
pub fn apply_to_expressions(&mut self, mut closure: impl FnMut(&mut Expression)) {
Expand Down
2 changes: 1 addition & 1 deletion src/program/calibration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ mod tests {
" PULSE 0 \"xy\" gaussian(duration: 1, fwhm: 2, t0: 3)\n",
"X 0\n"
),
expected: "PULSE 0 \"xy\" gaussian(duration: 1, fwhm: 2, t0: 3)\n",
expected: "PULSE 0 \"xy\" gaussian(duration: 1.0, fwhm: 2.0, t0: 3.0)\n",
},
TestCase {
input: concat!(
Expand Down

0 comments on commit a48b73e

Please sign in to comment.