MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_parse_case_insensitive

Function test_parse_case_insensitive

src/parser.rs:632–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

630
631 #[test]
632 fn test_parse_case_insensitive() {
633 let result = parse("Hello {name}", "hello WORLD", false).unwrap();
634 match result.named.get("name").unwrap() {
635 ParseValue::Str(s) => assert_eq!(s, "WORLD"),
636 other => panic!("Expected Str, got {:?}", other),
637 }
638 }
639
640 #[test]
641 fn test_parse_case_sensitive() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected