Remove Span::unknown (#525)

This commit is contained in:
JT
2021-12-19 18:46:13 +11:00
committed by GitHub
parent b54e9b6bfd
commit 2883d6cd1e
183 changed files with 1291 additions and 1124 deletions

View File

@ -305,7 +305,7 @@ mod tests {
fn substrings_indexes() {
let word = Value::String {
val: "andres".to_string(),
span: Span::unknown(),
span: Span::test_data(),
};
let cases = vec![
@ -336,13 +336,13 @@ mod tests {
for expectation in &cases {
let expected = expectation.expected;
let actual = action(&word, &expectation.options(), Span::unknown());
let actual = action(&word, &expectation.options(), Span::test_data());
assert_eq!(
actual,
Value::String {
val: expected.to_string(),
span: Span::unknown()
span: Span::test_data()
}
);
}