lean4-htt/tests
Sofia Rodrigues d95a2ee35e
feat: add FormatConfig for GenericFormat with leap second validation (#7584)
This PR introduces a structure called `FormatConfig`, which provides
additional configuration options for `GenericFormat`, such as whether
leap seconds should be allowed during parsing. By default, this option
is set to `false`.

This PR also fixes certain flaws to make the implementation less
permissive by:

- Disallowing the final leap second, such as `2016-12-31T23:59:60Z`,
when `allowLeapSeconds = false`.
- Disallowing invalid leap seconds, such as `2017-06-30T23:59:60Z`, when
`allowLeapSeconds = false`.
- Disallowing leap-minute time zones, such as
`2016-12-31T00:00:00+2360`, and out-of-range time zones, such as
`2016-12-31T00:00:00+2490`.

These changes ensure that Lean aligns with TypeScript's behavior, as
outlined in this table:
https://github.com/cedar-policy/cedar-spec/pull/519#issuecomment-2613547897.
2025-03-27 13:25:23 +00:00
..
bench chore: more core proof benchmarks 2025-03-21 15:59:14 +01:00
compiler feat: cleanup of get and back functions on List/Array (#7059) 2025-02-17 01:43:45 +00:00
elabissues
ir
lean feat: add FormatConfig for GenericFormat with leap second validation (#7584) 2025-03-27 13:25:23 +00:00
pkg feat: debug_assert! (#7256) 2025-03-03 16:34:44 +00:00
playground chore: remove save tactic (#7047) 2025-02-12 09:19:30 +00:00
plugin
simpperf
.gitignore
common.sh chore: fix fsanitize preset (#7651) 2025-03-24 09:17:45 +00:00
lean-toolchain