test(core): ingest postfix index/filter equality cases (ADR-24)
public
test(core): ingest postfix index/filter equality cases (ADR-24) The 0068-feel-equality fixture predated the list filter/index operator (ADR-24), so its `value[1] = value` cases (singleton coercion via a 1-based index, across boolean/number/string/temporal/context scalars) were skipped by the slice detector. Regenerating the dir now keeps them — `scalar[1]` coerces the scalar to a singleton list and indexes back to it, so each equals the original. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Changeset | 3eec2343c739d87c262e7bfcd822a9a0fa688af7 |
|---|---|
| Author (claimed) | Timo Stolz <timo.stolz@gmail.com>, |
| Parents | 6583b9b96e0d |
| Children | |
| Pushlog | by timo via ssh |
modified crates/feel-core/tests/fixtures/0068-feel-equality.json +72 −0
| @@ -424,6 +424,78 @@ | ||
| 424 | 424 | "deviation": null |
| 425 | 425 | }, |
| 426 | 426 | { |
| 427 | + "id": "0068-feel-equality:list_006:list_006", | |
| 428 | + "expression": "true[1] = true", | |
| 429 | + "expected": true, | |
| 430 | + "expected_type": "boolean", | |
| 431 | + "comparison": "exact", | |
| 432 | + "deviation": null | |
| 433 | + }, | |
| 434 | + { | |
| 435 | + "id": "0068-feel-equality:list_007:list_007", | |
| 436 | + "expression": "100[1] = 100", | |
| 437 | + "expected": true, | |
| 438 | + "expected_type": "boolean", | |
| 439 | + "comparison": "exact", | |
| 440 | + "deviation": null | |
| 441 | + }, | |
| 442 | + { | |
| 443 | + "id": "0068-feel-equality:list_008:list_008", | |
| 444 | + "expression": "\"foo\"[1] = \"foo\"", | |
| 445 | + "expected": true, | |
| 446 | + "expected_type": "boolean", | |
| 447 | + "comparison": "exact", | |
| 448 | + "deviation": null | |
| 449 | + }, | |
| 450 | + { | |
| 451 | + "id": "0068-feel-equality:list_009:list_009", | |
| 452 | + "expression": "date(\"2018-12-08\")[1] = date(\"2018-12-08\")", | |
| 453 | + "expected": true, | |
| 454 | + "expected_type": "boolean", | |
| 455 | + "comparison": "exact", | |
| 456 | + "deviation": null | |
| 457 | + }, | |
| 458 | + { | |
| 459 | + "id": "0068-feel-equality:list_010:list_010", | |
| 460 | + "expression": "time(\"10:30:12\")[1] = time(\"10:30:12\")", | |
| 461 | + "expected": true, | |
| 462 | + "expected_type": "boolean", | |
| 463 | + "comparison": "exact", | |
| 464 | + "deviation": null | |
| 465 | + }, | |
| 466 | + { | |
| 467 | + "id": "0068-feel-equality:list_011:list_011", | |
| 468 | + "expression": "date and time(\"2018-12-08\")[1] = date and time(\"2018-12-08\")", | |
| 469 | + "expected": true, | |
| 470 | + "expected_type": "boolean", | |
| 471 | + "comparison": "exact", | |
| 472 | + "deviation": null | |
| 473 | + }, | |
| 474 | + { | |
| 475 | + "id": "0068-feel-equality:list_012:list_012", | |
| 476 | + "expression": "duration(\"P1D\")[1] = duration(\"P1D\")", | |
| 477 | + "expected": true, | |
| 478 | + "expected_type": "boolean", | |
| 479 | + "comparison": "exact", | |
| 480 | + "deviation": null | |
| 481 | + }, | |
| 482 | + { | |
| 483 | + "id": "0068-feel-equality:list_013:list_013", | |
| 484 | + "expression": "duration(\"P1Y\")[1] = duration(\"P1Y\")", | |
| 485 | + "expected": true, | |
| 486 | + "expected_type": "boolean", | |
| 487 | + "comparison": "exact", | |
| 488 | + "deviation": null | |
| 489 | + }, | |
| 490 | + { | |
| 491 | + "id": "0068-feel-equality:list_014:list_014", | |
| 492 | + "expression": "{a: \"foo\"}[1] = {a: \"foo\"}", | |
| 493 | + "expected": true, | |
| 494 | + "expected_type": "boolean", | |
| 495 | + "comparison": "exact", | |
| 496 | + "deviation": null | |
| 497 | + }, | |
| 498 | + { | |
| 427 | 499 | "id": "0068-feel-equality:list_015:list_015", |
| 428 | 500 | "expression": "[] = null", |
| 429 | 501 | "expected": false, |