Skip to content

Commit 9f6e051

Browse files
committed
run cargo fmt
1 parent b009eea commit 9f6e051

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/side_diff.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ mod tests {
960960
mod diff {
961961
/*
962962
Probably this hole section should be refactored when complete sdiff
963-
arrives. I would say that these tests are more to document the
963+
arrives. I would say that these tests are more to document the
964964
behavior of the engine than to actually test whether it is right,
965965
because it is right, but right up to its limitations.
966966
*/
@@ -1117,7 +1117,7 @@ mod tests {
11171117
fn test_interleaved_add_remove() {
11181118
let params = generate_params();
11191119
let from_file = b"A\nB\nC\nD";
1120-
let to_file = b"B\nX\nD\nY";
1120+
let to_file = b"B\nX\nD\nY";
11211121
let mut output = vec![];
11221122
diff(from_file, to_file, &mut output, &params);
11231123

@@ -1165,7 +1165,7 @@ mod tests {
11651165
let to_file = b"Same\nNew1\nSameMid\nNew2\nNew3\nSameEnd";
11661166
let mut output = vec![];
11671167
diff(from_file, to_file, &mut output, &params);
1168-
1168+
11691169
assert_eq!(calc_lines(&output), 8);
11701170
assert_eq!(contains_string(&output, "<"), 2);
11711171
assert_eq!(contains_string(&output, ">"), 3);
@@ -1199,62 +1199,62 @@ mod tests {
11991199
assert_eq!(contains_string(&output, ">"), 3);
12001200
}
12011201
}
1202-
1202+
12031203
mod config {
12041204
use super::*;
1205-
1205+
12061206
fn create_config(full_width: usize, tab_size: usize, expanded: bool) -> Config {
12071207
Config::new(full_width, tab_size, expanded)
12081208
}
1209-
1209+
12101210
#[test]
12111211
fn test_full_width_80_tab_4() {
12121212
let config = create_config(80, 4, false);
12131213
assert_eq!(config.sdiff_half_width, 37);
12141214
assert_eq!(config.sdiff_column_two_offset, 40);
12151215
assert_eq!(config.separator_pos, 38);
12161216
}
1217-
1217+
12181218
#[test]
12191219
fn test_full_width_40_tab_8() {
12201220
let config = create_config(40, 8, true);
12211221
assert_eq!(config.sdiff_half_width, 16);
12221222
assert_eq!(config.sdiff_column_two_offset, 24);
12231223
assert_eq!(config.separator_pos, 19); // (16 +24 -1) /2 = 19.5 truncado para 19
12241224
}
1225-
1225+
12261226
#[test]
12271227
fn test_full_width_30_tab_2() {
12281228
let config = create_config(30, 2, false);
12291229
assert_eq!(config.sdiff_half_width, 13);
12301230
assert_eq!(config.sdiff_column_two_offset, 16);
12311231
assert_eq!(config.separator_pos, 14);
12321232
}
1233-
1233+
12341234
#[test]
12351235
fn test_small_width_10_tab_4() {
12361236
let config = create_config(10, 4, false);
12371237
assert_eq!(config.sdiff_half_width, 2);
12381238
assert_eq!(config.sdiff_column_two_offset, 8);
12391239
assert_eq!(config.separator_pos, 4);
12401240
}
1241-
1241+
12421242
#[test]
12431243
fn test_minimal_width_3_tab_4() {
12441244
let config = create_config(3, 4, false);
12451245
assert_eq!(config.sdiff_half_width, 0);
12461246
assert_eq!(config.sdiff_column_two_offset, 3);
12471247
assert_eq!(config.separator_pos, 1);
12481248
}
1249-
1249+
12501250
#[test]
12511251
fn test_odd_width_7_tab_3() {
12521252
let config = create_config(7, 3, false);
12531253
assert_eq!(config.sdiff_half_width, 1);
12541254
assert_eq!(config.sdiff_column_two_offset, 6);
12551255
assert_eq!(config.separator_pos, 3);
12561256
}
1257-
1257+
12581258
#[test]
12591259
fn test_tab_size_larger_than_width() {
12601260
let config = create_config(5, 10, false);

0 commit comments

Comments
 (0)