This commit is contained in:
HouXiaoxuan
2023-12-23 19:21:51 +08:00
parent 028a044ad5
commit 9cbe0a5031
2 changed files with 13 additions and 4 deletions

View File

@@ -58,6 +58,7 @@ mod test {
assert!(head_one.is_empty());
util::ensure_test_file(&Path::new(test_file), "test content".into());
commands::add::add(vec![], true, false);
commands::commit::commit("test commit 1".to_string(), true);
let head_two = head::current_head_commit();
assert!(head_two.len() > 0);