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
elabissues
ir
lean feat: add FormatConfig for GenericFormat with leap second validation (#7584) 2025-03-27 13:25:23 +00:00
pkg
playground
plugin
simpperf
.gitignore
common.sh chore: fix fsanitize preset (#7651) 2025-03-24 09:17:45 +00:00
lean-toolchain