Faster tests
This commit is contained in:
parent
c734d256be
commit
ac4c7fb1df
4 changed files with 8 additions and 5651 deletions
|
|
@ -120,23 +120,20 @@ mod test {
|
||||||
#[ignore = "expensive to run, only run in CI"]
|
#[ignore = "expensive to run, only run in CI"]
|
||||||
#[test_matrix( [
|
#[test_matrix( [
|
||||||
"pride_and_prejudice.txt",
|
"pride_and_prejudice.txt",
|
||||||
"romeo_and_juliet.txt",
|
|
||||||
"room_with_a_view.txt",
|
"room_with_a_view.txt",
|
||||||
"kun_lu.txt",
|
"kun_lu.txt",
|
||||||
"blns.txt"
|
"blns.txt"
|
||||||
], [
|
], [
|
||||||
"pride_and_prejudice.txt",
|
"pride_and_prejudice.txt",
|
||||||
"romeo_and_juliet.txt",
|
|
||||||
"room_with_a_view.txt",
|
"room_with_a_view.txt",
|
||||||
"kun_lu.txt",
|
"kun_lu.txt",
|
||||||
"blns.txt"
|
"blns.txt"
|
||||||
], [
|
], [
|
||||||
"pride_and_prejudice.txt",
|
"pride_and_prejudice.txt",
|
||||||
"romeo_and_juliet.txt",
|
|
||||||
"room_with_a_view.txt",
|
"room_with_a_view.txt",
|
||||||
"kun_lu.txt",
|
"kun_lu.txt",
|
||||||
"blns.txt"
|
"blns.txt"
|
||||||
], [0..10000, 10000..20000, 20000..50000], [0..10000, 10000..20000, 20000..50000], [0..10000, 10000..20000, 20000..50000])]
|
], [0..10000, 10000..20000], [0..10000, 10000..20000], [0..10000, 10000..20000])]
|
||||||
fn test_merge_files_without_panic(
|
fn test_merge_files_without_panic(
|
||||||
file_name_1: &str,
|
file_name_1: &str,
|
||||||
file_name_2: &str,
|
file_name_2: &str,
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ where
|
||||||
Operation::Equal { index, .. } => index.to_string(),
|
Operation::Equal { index, .. } => index.to_string(),
|
||||||
Operation::Insert { text, .. } => text
|
Operation::Insert { text, .. } => text
|
||||||
.iter()
|
.iter()
|
||||||
.map(super::super::tokenizer::token::Token::original)
|
.map(crate::tokenizer::token::Token::original)
|
||||||
.collect::<String>(),
|
.collect::<String>(),
|
||||||
Operation::Delete {
|
Operation::Delete {
|
||||||
deleted_character_count,
|
deleted_character_count,
|
||||||
|
|
|
||||||
|
|
@ -122,3 +122,9 @@ parent: hello world
|
||||||
left: hi, world
|
left: hi, world
|
||||||
right: hello my friend!
|
right: hello my friend!
|
||||||
expected: hi, my friend!
|
expected: hi, my friend!
|
||||||
|
|
||||||
|
---
|
||||||
|
parent: a a
|
||||||
|
left: a
|
||||||
|
right: a
|
||||||
|
expected: a
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue