diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-07-15 12:44:52 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-07-15 12:44:52 -0400 |
commit | 5c9286d976ec96a887a3178857535949a2b6647a (patch) | |
tree | 6a0375db20d09e16f512964f6591b42159c64045 /src/options | |
parent | a3598348ca0e7f7383d68b6e0513cf97038477a7 (diff) |
Add test assertions for opt.computed
Diffstat (limited to 'src/options')
-rw-r--r-- | src/options/set.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options/set.rs b/src/options/set.rs index 6928fc65..eb310c13 100644 --- a/src/options/set.rs +++ b/src/options/set.rs @@ -491,6 +491,7 @@ fn set_widths(opt: &mut cli::Opt) { pub mod tests { use std::fs::remove_file; + use crate::bat::output::PagingMode; use crate::tests::integration_test_utils::integration_test_utils; #[test] @@ -599,6 +600,8 @@ pub mod tests { assert_eq!(opt.tokenization_regex, "xxxyyyzzz"); assert_eq!(opt.zero_style, "black black"); + assert_eq!(opt.computed.paging_mode, PagingMode::Never); + remove_file(git_config_path).unwrap(); } } |