Skip to content

Commit ff65c3d

Browse files
(master) fix tests
1 parent 0a7b91c commit ff65c3d

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ default = []
3535
[dependencies]
3636
regex = "1"
3737
signal-hook = "0.3"
38-
crossbeam-channel = "0.5"
3938
clap = { version = "4.1", features = ["derive"] }
4039
crossterm = "0.26"
4140
derive_builder = "0.12"

crates/shrs_lang/src/lexer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ mod tests {
304304
#[test]
305305
fn single_quote() {
306306
let mut lexer = Lexer::new("'hello world'");
307-
assert_eq!(lexer.next(), Some(Ok((0, Token::WORD("hello world"), 12))));
307+
assert_eq!(
308+
lexer.next(),
309+
Some(Ok((0, Token::WORD("'hello world'"), 13)))
310+
);
308311
}
309312

310313
#[test]

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ lint:
2222
flamegraph:
2323
cargo flamegraph --profile=release
2424

25+
test:
26+
cargo test --workspace
27+
2528
doc:
2629
cargo doc --workspace --all-features --no-deps --open
2730

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//!
55
//! # Example
66
//! The most basic shell can be created very easily:
7-
//! ```
7+
//! ```no_run
88
//! use shrs::prelude::*;
99
//!
1010
//! fn main() {

0 commit comments

Comments
 (0)