From f49b0cd2072a8629cf94daf8b10fdbc2019b1c0f Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Thu, 1 Dec 2022 13:26:08 -0600 Subject: [PATCH] Update repl expect test to work around Dec copy bug --- crates/repl_expect/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/repl_expect/src/lib.rs b/crates/repl_expect/src/lib.rs index 03d5eb4ecf..9fd98c8e4d 100644 --- a/crates/repl_expect/src/lib.rs +++ b/crates/repl_expect/src/lib.rs @@ -442,8 +442,8 @@ mod test { main = 0 expect - vec1 = { x: 1.0, y: 2.0 } - vec2 = { x: 4.0, y: 8.0 } + vec1 = { x: 1.0f64, y: 2.0f64 } + vec2 = { x: 4.0f64, y: 8.0f64 } vec1 == vec2 "# @@ -453,17 +453,17 @@ mod test { This expectation failed: 5│> expect - 6│> vec1 = { x: 1.0, y: 2.0 } - 7│> vec2 = { x: 4.0, y: 8.0 } + 6│> vec1 = { x: 1.0f64, y: 2.0f64 } + 7│> vec2 = { x: 4.0f64, y: 8.0f64 } 8│> 9│> vec1 == vec2 When it failed, these variables had these values: - vec1 : { x : Frac *, y : Frac * } + vec1 : { x : F64, y : F64 } vec1 = { x: 1, y: 2 } - vec2 : { x : Frac *, y : Frac * } + vec2 : { x : F64, y : F64 } vec2 = { x: 4, y: 8 } "# ),