| 261 | |
| 262 | #[test] |
| 263 | fn test_json_format_with_limit() { |
| 264 | let fixture = TestFixture::empty().expect("Failed to create fixture"); |
| 265 | setup_test_graph!(fixture); |
| 266 | |
| 267 | // Insert multiple records in one statement |
| 268 | fixture |
| 269 | .query( |
| 270 | "INSERT (:Person {id: 1}), (:Person {id: 2}), (:Person {id: 3}), \ |
| 271 | (:Person {id: 4}), (:Person {id: 5}), (:Person {id: 6}), \ |
| 272 | (:Person {id: 7}), (:Person {id: 8}), (:Person {id: 9}), \ |
| 273 | (:Person {id: 10});", |
| 274 | ) |
| 275 | .expect("Insert failed"); |
| 276 | |
| 277 | // Query with LIMIT |
| 278 | let result = fixture |
| 279 | .query("MATCH (p:Person) RETURN p.id LIMIT 3;") |
| 280 | .expect("Query failed"); |
| 281 | |
| 282 | // Should return exactly 3 rows |
| 283 | assert_eq!(result.rows.len(), 3); |
| 284 | assert_eq!(result.variables.len(), 1); |
| 285 | } |
| 286 | |
| 287 | #[test] |
| 288 | fn test_json_format_with_order_by() { |