summaryrefslogtreecommitdiffstats
path: root/tests/env.rs
diff options
context:
space:
mode:
authorJoel Gallant <joel@joelgallant.me>2020-05-03 15:28:04 -0600
committerJohn Brandt <johnb0@outlook.com>2021-05-04 10:30:31 -0600
commit98b78049268d1be70a985b4774e724e19e94c84e (patch)
tree8c6a782987f6456e5fb40eff140bb2b7d5900b9c /tests/env.rs
parenta5c3fab7c79fae06512ead0c0c05c354000b0ce8 (diff)
Renames parse_numbers to try_parsing
Diffstat (limited to 'tests/env.rs')
-rw-r--r--tests/env.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/env.rs b/tests/env.rs
index 8ab5be0..3f649c7 100644
--- a/tests/env.rs
+++ b/tests/env.rs
@@ -89,7 +89,8 @@ fn test_parse_numbers() {
env::set_var("FLOAT_VAL", "42.2");
env::set_var("BOOL_VAL", "true");
- let environment = Environment::new().parse_numbers(true);
+ let environment = Environment::new().try_parsing(true);
+
let values = environment.collect().unwrap();
assert_eq!(