Commit fc861bb6 authored by Bharat Garhewal's avatar Bharat Garhewal
Browse files

Should fix tests now

parent 952f7698
Pipeline #60928 failed with stages
in 4 minutes and 3 seconds
......@@ -54,9 +54,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"seq" => Rule3::SepSeq,
_ => unreachable!(),
};
let use_ly_ads: bool = matches.occurrences_of("ly_ads") != 0;
let use_ly_ads: bool = matches.contains_id("ly_ads");
let path_name = matches.get_one::<String>("model").unwrap();
let oracle_choice = match matches.value_of("eq_oracle").unwrap() {
let oracle_choice = match matches
.get_one::<String>("eq_oracle")
.expect("Safe")
.as_str()
{
"int" => EqOracle::Internal,
"hads_tree" => EqOracle::HadsTree,
"iads" => EqOracle::Iads,
......@@ -112,10 +116,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.unwrap_or_else(|file| panic!("Write exception when writing to file {}", file));
result_vec.clear();
let num_repeat = matches
.value_of("repeat")
.get_one::<String>("repeat")
.map_or(1, |n| n.parse::<usize>().unwrap());
let log_path = matches.value_of("log");
let log_path = matches.get_one::<String>("log");
let mut rng = StdRng::seed_from_u64(seed);
if Path::new(path_name).is_file() {
for _i in 0..num_repeat {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment