MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / test_directive_with_empty_array

Function test_directive_with_empty_array

aiscript-directive/src/lib.rs:311–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309
310 #[test]
311 fn test_directive_with_empty_array() {
312 let directive = parse_single_directive("@values([])").unwrap();
313 assert_eq!(directive.name, "values");
314 match directive.params {
315 DirectiveParams::Array(values) => {
316 assert_eq!(values.len(), 0);
317 }
318 _ => panic!("Expected Array parameters"),
319 }
320 }
321
322 #[test]
323 fn test_directive_with_empty_key_value() {

Callers

nothing calls this directly

Calls 1

parse_single_directiveFunction · 0.85

Tested by

no test coverage detected