Skip to content

Commit 877b519

Browse files
committed
normalization test (#16)
1 parent 56bfad7 commit 877b519

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/index/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ mod changes_from_objects {
5757
Ok(())
5858
}
5959

60+
#[test]
61+
fn normalization() -> crate::Result {
62+
let changes = changes(&index_ro()?, ":/normalize")?;
63+
assert_eq!(
64+
changes.len(),
65+
2356, // should be 0
66+
"normalization changes the representation, but the data itself stays the same, BUT we can't do it yet"
67+
);
68+
Ok(())
69+
}
70+
6071
fn changes(index: &Index, revspec: &str) -> crate::Result<Vec<Change>> {
6172
let repo = git::open(index.repository().path())?;
6273
let commit = repo.rev_parse(revspec)?.single().unwrap();

0 commit comments

Comments
 (0)