MCPcopy Create free account
hub / github.com/daisy/MathCAT / abs_rules_dir_path

Function abs_rules_dir_path

tests/common/mod.rs:21–25  ·  view source on GitHub ↗

Build Absolute path to rules dir for testing

()

Source from the content-addressed store, hash-verified

19
20/// Build Absolute path to rules dir for testing
21pub fn abs_rules_dir_path() -> String {
22 return std::env::current_exe().unwrap().parent().unwrap()
23 .join("../../../Rules")
24 .to_str().unwrap().to_string();
25}
26
27
28// Strip spaces from 'str' so comparison doesn't need to worry about spacing

Callers 5

testFunction · 0.70
test_prefsFunction · 0.70
test_brailleFunction · 0.70
test_braille_prefsFunction · 0.70
drop_frac_2aFunction · 0.50

Calls 1

to_strMethod · 0.80

Tested by 4

test_prefsFunction · 0.56
test_brailleFunction · 0.56
test_braille_prefsFunction · 0.56
drop_frac_2aFunction · 0.40