diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-02 19:26:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-02 19:26:17 +0200 |
| commit | bf6386f4954ffa73225ef18cc02f087509f28765 (patch) | |
| tree | b016902cd4771ce5b4d86da7771e832c72c150c4 /src/common/input | |
| parent | docs(changelog): Add theme support through xrdb #239 (diff) | |
| parent | Enables the Default Config Test (diff) | |
| download | sl0ppij-bf6386f4954ffa73225ef18cc02f087509f28765.tar.gz sl0ppij-bf6386f4954ffa73225ef18cc02f087509f28765.tar.xz sl0ppij-bf6386f4954ffa73225ef18cc02f087509f28765.zip | |
Merge pull request #436 from a-kenji/fix-default-config-test
Enables the Default Config Test
Diffstat (limited to 'src/common/input')
| -rw-r--r-- | src/common/input/config.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/common/input/config.rs b/src/common/input/config.rs index 81c04120..3263b571 100644 --- a/src/common/input/config.rs +++ b/src/common/input/config.rs @@ -199,12 +199,10 @@ mod config_test { assert_eq!(result.unwrap(), Config::default()); } - // This test needs a split somewhere between test and normal runs, - // since otherwise it would look in a local configuration and fail. - //#[test] - //fn try_from_cli_args_default() { - //let opts = CliArgs::default(); - //let result = Config::try_from(&opts); - //assert_eq!(result.unwrap(), Config::default()); - //} + #[test] + fn try_from_cli_args_default() { + let opts = CliArgs::default(); + let result = Config::try_from(&opts); + assert_eq!(result.unwrap(), Config::default()); + } } |
