We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56bfad7 commit 877b519Copy full SHA for 877b519
tests/index/mod.rs
@@ -57,6 +57,17 @@ mod changes_from_objects {
57
Ok(())
58
}
59
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
+
71
fn changes(index: &Index, revspec: &str) -> crate::Result<Vec<Change>> {
72
let repo = git::open(index.repository().path())?;
73
let commit = repo.rev_parse(revspec)?.single().unwrap();
0 commit comments