Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfleischer committed Sep 17, 2024
1 parent 8d99ec6 commit 42f9256
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/atuin-client/src/import/zsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,15 @@ mod test {
let bytes = r": 1613322469:0;cargo install atuin
: 1613322469:10;cargo install atuin; \
cargo update
: 1613322469:10;cargo install atuin; \\
cargo update
: 1613322469:10;cargo :b̷i̶t̴r̵o̴t̴ ̵i̷s̴ ̷r̶e̵a̸l̷
"
.as_bytes()
.to_owned();

let mut zsh = Zsh { bytes };
assert_eq!(zsh.entries().await.unwrap(), 4);
assert_eq!(zsh.entries().await.unwrap(), 6);

let mut loader = TestLoader::default();
zsh.load(&mut loader).await.unwrap();
Expand All @@ -212,6 +214,7 @@ cargo update
[
"cargo install atuin",
"cargo install atuin; \\\ncargo update",
"cargo install atuin; \\\ncargo update",
"cargo :b̷i̶t̴r̵o̴t̴ ̵i̷s̴ ̷r̶e̵a̸l̷",
],
);
Expand Down

0 comments on commit 42f9256

Please sign in to comment.