()
| 468 | |
| 469 | #[test] |
| 470 | fn parse_array_of_objects() { |
| 471 | let result = parse_object_literal_array("[{ name: 'Alice' }, { name: 'Bob' }]") |
| 472 | .unwrap() |
| 473 | .unwrap(); |
| 474 | assert_eq!(result.len(), 2); |
| 475 | assert_eq!(result[0]["name"], Value::String("Alice".to_string())); |
| 476 | assert_eq!(result[1]["name"], Value::String("Bob".to_string())); |
| 477 | } |
| 478 | |
| 479 | #[test] |
| 480 | fn parse_array_empty() { |
nothing calls this directly
no test coverage detected