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

Function abs_rules_dir_path

src/lib.rs:78–82  ·  view source on GitHub ↗

Build Absolute path to rules dir for testing

()

Source from the content-addressed store, hash-verified

76#[cfg(test)]
77/// Build Absolute path to rules dir for testing
78pub fn abs_rules_dir_path() -> String {
79 return std::env::current_exe().unwrap().parent().unwrap()
80 .join("../../../Rules")
81 .to_str().unwrap().to_string();
82}
83
84#[cfg(test)]
85pub fn are_strs_canonically_equal_with_locale(test: &str, target: &str, block_separators: &str, decimal_separators: &str) -> bool {

Callers 10

empty_mrow_with_intentFunction · 0.70
test_intentFunction · 0.70
ueb_highlight_24Function · 0.70
test_UEB_start_modeFunction · 0.70
test_entitiesFunction · 0.70
init_default_prefsFunction · 0.70
move_simple_no_timesFunction · 0.70
move_cellFunction · 0.70

Calls 1

to_strMethod · 0.80

Tested by 8

empty_mrow_with_intentFunction · 0.56
test_intentFunction · 0.56
ueb_highlight_24Function · 0.56
test_UEB_start_modeFunction · 0.56
test_entitiesFunction · 0.56
move_simple_no_timesFunction · 0.56
move_cellFunction · 0.56