diff --git a/src/instruction.rs b/src/instruction.rs index 9b374d59..c770eabf 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -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)) { diff --git a/src/program/calibration.rs b/src/program/calibration.rs index 24ce9413..89bca9ff 100644 --- a/src/program/calibration.rs +++ b/src/program/calibration.rs @@ -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!(