MCPcopy Create free account
hub / github.com/ddd/gpb / test_format_loading

Function test_format_loading

src/format/format.rs:403–416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401
402 #[test]
403 fn test_format_loading() {
404 let result = load_format_data();
405 assert!(result.is_ok(), "Failed to load format data");
406
407 let sg_format = get_country_format("sg");
408 assert!(sg_format.is_ok(), "Failed to get SG format");
409
410 let sg = sg_format.unwrap();
411 assert_eq!(sg.code, "65");
412
413 let area_codes = sg.area_codes;
414 assert!(area_codes.contains(&"8".to_string()), "SG should have area code 8");
415 assert!(area_codes.contains(&"9".to_string()), "SG should have area code 9");
416 }
417
418 #[test]
419 fn test_specific_number_generation_us() {

Callers

nothing calls this directly

Calls 2

load_format_dataFunction · 0.85
get_country_formatFunction · 0.85

Tested by

no test coverage detected