Remove trailing whitespace from some tests and update their expected error locations
@@ -1376,7 +1376,8 @@ pub fn x() { id(1, 1.0) }
);
assert_error!(
- "fn bar() -> Int {
+ "
+fn bar() -> Int {
5
}
@@ -1389,8 +1390,8 @@ pub fn x() { id(1, 1.0) }
}",
Error::CouldNotUnify {
location: SrcSpan {
- start: 171,
- end: 174
+ start: 91,
+ end: 94
},
expected: Arc::new(Type::Fn {
args: vec![],
@@ -1404,7 +1405,8 @@ pub fn x() { id(1, 1.0) }
);
assert_error!(
- "fn bar(x: Int) -> Int {
+ "
+fn bar(x: Int) -> Int {
x * 5
}
@@ -1417,8 +1419,8 @@ pub fn x() { id(1, 1.0) }
}",
Error::CouldNotUnify {
location: SrcSpan {
- start: 190,
- end: 193
+ start: 110,
+ end: 113
},
expected: Arc::new(Type::Fn {
args: vec![string()],
