Skip to content

Commit a48b73e

Browse files
committed
Chore: fix tests after merge from main
1 parent 87d84de commit a48b73e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/instruction.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ impl Instruction {
885885
/// let mut instructions = program.to_instructions(true);
886886
/// instructions.iter_mut().for_each(|inst| inst.apply_to_expressions(Expression::simplify));
887887
///
888-
/// assert_eq!(instructions[0].to_string(), String::from("SHIFT-PHASE 0 \"rf\" 4"))
888+
/// assert_eq!(instructions[0].to_string(), String::from("SHIFT-PHASE 0 \"rf\" 4.0"))
889889
///
890890
/// ```
891891
pub fn apply_to_expressions(&mut self, mut closure: impl FnMut(&mut Expression)) {

src/program/calibration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ mod tests {
374374
" PULSE 0 \"xy\" gaussian(duration: 1, fwhm: 2, t0: 3)\n",
375375
"X 0\n"
376376
),
377-
expected: "PULSE 0 \"xy\" gaussian(duration: 1, fwhm: 2, t0: 3)\n",
377+
expected: "PULSE 0 \"xy\" gaussian(duration: 1.0, fwhm: 2.0, t0: 3.0)\n",
378378
},
379379
TestCase {
380380
input: concat!(

0 commit comments

Comments
 (0)