Update repl expect test to work around Dec copy bug

This commit is contained in:
Ayaz Hafiz 2022-12-01 13:26:08 -06:00
parent 3d34e158e3
commit f49b0cd207
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -442,8 +442,8 @@ mod test {
main = 0 main = 0
expect expect
vec1 = { x: 1.0, y: 2.0 } vec1 = { x: 1.0f64, y: 2.0f64 }
vec2 = { x: 4.0, y: 8.0 } vec2 = { x: 4.0f64, y: 8.0f64 }
vec1 == vec2 vec1 == vec2
"# "#
@ -453,17 +453,17 @@ mod test {
This expectation failed: This expectation failed:
5> expect 5> expect
6> vec1 = { x: 1.0, y: 2.0 } 6> vec1 = { x: 1.0f64, y: 2.0f64 }
7> vec2 = { x: 4.0, y: 8.0 } 7> vec2 = { x: 4.0f64, y: 8.0f64 }
8> 8>
9> vec1 == vec2 9> vec1 == vec2
When it failed, these variables had these values: When it failed, these variables had these values:
vec1 : { x : Frac *, y : Frac * } vec1 : { x : F64, y : F64 }
vec1 = { x: 1, y: 2 } vec1 = { x: 1, y: 2 }
vec2 : { x : Frac *, y : Frac * } vec2 : { x : F64, y : F64 }
vec2 = { x: 4, y: 8 } vec2 = { x: 4, y: 8 }
"# "#
), ),