@kanonak-protocol/expression 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +36 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +151 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vectors/expression-surface-vectors.json +15 -0
- package/vectors/expression-vectors-2.json +772 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"expressionRuntimeVersion": "2",
|
|
3
|
-
"description": "Behavior parity vectors for expressionRuntimeVersion 2 — the value-domain extension (number | string | ref | list), the list/aggregate/membership family, polymorphic Equals, kind predicates, lambda binding (Filter/ListMap/ForEach), Matches over the pinned RE2-compatible XSD-regex subset,
|
|
3
|
+
"description": "Behavior parity vectors for expressionRuntimeVersion 2 — the value-domain extension (number | string | ref | list), the list/aggregate/membership family, polymorphic Equals, kind predicates, lambda binding (Filter/ListMap/ForEach), Matches over the pinned RE2-compatible XSD-regex subset, NameBasedUuid, the RFC 9562 version 5 UUID of a name (1.2.0), StartsWith, a prefix test of one string by another (1.3.0), and EpochMilliseconds and EpochDays, a date-time or a date read as the whole milliseconds or days since 1970-01-01 (1.4.0). Runs IN ADDITION to expression-vectors.json (v1), every vector of which must pass unchanged under a v2 kernel — that file is the numeric-regression gate. `expected` and `env` values are Values: JSON numbers, strings, arrays (lists), and {\"ref\": \"publisher/package/name\"} objects (refs). Normative list-family semantics are the SDK reference engine's: Sum on empty = 0; Min/Max/Average on empty = loud error; Count type-agnostic; absence is the empty list; predicates fail closed on type-confused operands, computations fail loud.",
|
|
4
4
|
"vectors": [
|
|
5
5
|
{
|
|
6
6
|
"id": "string-literal",
|
|
@@ -1978,6 +1978,777 @@
|
|
|
1978
1978
|
"uuidFormat": "valueOf"
|
|
1979
1979
|
},
|
|
1980
1980
|
"expectError": true
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
"id": "starts-with-prefix",
|
|
1984
|
+
"expr": {
|
|
1985
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
1986
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ-0042" },
|
|
1987
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ-" }
|
|
1988
|
+
},
|
|
1989
|
+
"expected": 1
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
"id": "starts-with-substring-elsewhere",
|
|
1993
|
+
"description": "A prefix test, not a substring test: the string must begin with it",
|
|
1994
|
+
"expr": {
|
|
1995
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
1996
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "XPRJ-0042" },
|
|
1997
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ-" }
|
|
1998
|
+
},
|
|
1999
|
+
"expected": 0
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
"id": "starts-with-equal-strings",
|
|
2003
|
+
"description": "A string starts with itself",
|
|
2004
|
+
"expr": {
|
|
2005
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2006
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ" },
|
|
2007
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ" }
|
|
2008
|
+
},
|
|
2009
|
+
"expected": 1
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"id": "starts-with-prefix-longer-than-string",
|
|
2013
|
+
"expr": {
|
|
2014
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2015
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PR" },
|
|
2016
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ" }
|
|
2017
|
+
},
|
|
2018
|
+
"expected": 0
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"id": "starts-with-empty-prefix",
|
|
2022
|
+
"description": "Every string starts with the empty string, the empty string included",
|
|
2023
|
+
"expr": {
|
|
2024
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2025
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "" },
|
|
2026
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "" }
|
|
2027
|
+
},
|
|
2028
|
+
"expected": 1
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"id": "starts-with-case-sensitive",
|
|
2032
|
+
"description": "No case folding",
|
|
2033
|
+
"expr": {
|
|
2034
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2035
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "prj-0042" },
|
|
2036
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "PRJ" }
|
|
2037
|
+
},
|
|
2038
|
+
"expected": 0
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
"id": "starts-with-no-normalization",
|
|
2042
|
+
"description": "Code point by code point, with no Unicode normalization: a decomposed e-acute does not start with the precomposed one",
|
|
2043
|
+
"expr": {
|
|
2044
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2045
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "e\u0301t\u00e9" },
|
|
2046
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "\u00e9" }
|
|
2047
|
+
},
|
|
2048
|
+
"expected": 0
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"id": "starts-with-combining-mark-split",
|
|
2052
|
+
"description": "A prefix may end before a combining mark: code points, not grapheme clusters",
|
|
2053
|
+
"expr": {
|
|
2054
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2055
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "e\u0301t\u00e9" },
|
|
2056
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "e" }
|
|
2057
|
+
},
|
|
2058
|
+
"expected": 1
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"id": "starts-with-astral",
|
|
2062
|
+
"description": "A character outside the Basic Multilingual Plane is one code point",
|
|
2063
|
+
"expr": {
|
|
2064
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2065
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "\ud83d\ude00-1" },
|
|
2066
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "\ud83d\ude00" }
|
|
2067
|
+
},
|
|
2068
|
+
"expected": 1
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"id": "starts-with-number-operand-is-false",
|
|
2072
|
+
"description": "A predicate fails closed: a number is not a string",
|
|
2073
|
+
"expr": {
|
|
2074
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2075
|
+
"compareLeft": { "type": "kanonak.org/transformations/IntegerLiteral", "integerLiteral": 12 },
|
|
2076
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1" }
|
|
2077
|
+
},
|
|
2078
|
+
"expected": 0
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
"id": "starts-with-number-prefix-is-false",
|
|
2082
|
+
"expr": {
|
|
2083
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2084
|
+
"compareLeft": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "12" },
|
|
2085
|
+
"compareRight": { "type": "kanonak.org/transformations/IntegerLiteral", "integerLiteral": 1 }
|
|
2086
|
+
},
|
|
2087
|
+
"expected": 0
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"id": "starts-with-ref-is-false",
|
|
2091
|
+
"description": "A URI is never the string spelling of it",
|
|
2092
|
+
"expr": {
|
|
2093
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2094
|
+
"compareLeft": { "type": "kanonak.org/transformations/UriLiteral", "refTo": "example.org/colors/red" },
|
|
2095
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "example.org" }
|
|
2096
|
+
},
|
|
2097
|
+
"expected": 0
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
"id": "starts-with-list-is-false",
|
|
2101
|
+
"description": "A list is a container, not a string",
|
|
2102
|
+
"expr": {
|
|
2103
|
+
"type": "kanonak.org/transformations/StartsWith",
|
|
2104
|
+
"compareLeft": { "type": "kanonak.org/transformations/VarRef", "varName": "xs" },
|
|
2105
|
+
"compareRight": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "a" }
|
|
2106
|
+
},
|
|
2107
|
+
"env": { "xs": ["abc"] },
|
|
2108
|
+
"expected": 0
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"id": "epoch-milliseconds-utc",
|
|
2112
|
+
"description": "The whole milliseconds since 1970-01-01T00:00:00Z",
|
|
2113
|
+
"expr": {
|
|
2114
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2115
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21Z" }
|
|
2116
|
+
},
|
|
2117
|
+
"expected": 1794626001000
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"id": "epoch-milliseconds-the-epoch",
|
|
2121
|
+
"expr": {
|
|
2122
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2123
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1970-01-01T00:00:00Z" }
|
|
2124
|
+
},
|
|
2125
|
+
"expected": 0
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
"id": "epoch-milliseconds-positive-zone",
|
|
2129
|
+
"description": "The local time is UTC plus the zone's offset, so the instant is the same as in UTC",
|
|
2130
|
+
"expr": {
|
|
2131
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2132
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T08:43:21+05:30" }
|
|
2133
|
+
},
|
|
2134
|
+
"expected": 1794626001000
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"id": "epoch-milliseconds-negative-zone",
|
|
2138
|
+
"expr": {
|
|
2139
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2140
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-13T22:13:21-05:00" }
|
|
2141
|
+
},
|
|
2142
|
+
"expected": 1794626001000
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
"id": "epoch-milliseconds-zone-plus-fourteen",
|
|
2146
|
+
"description": "+14:00 is the widest offset XSD allows",
|
|
2147
|
+
"expr": {
|
|
2148
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2149
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T17:13:21+14:00" }
|
|
2150
|
+
},
|
|
2151
|
+
"expected": 1794626001000
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"id": "epoch-milliseconds-zone-minus-fourteen",
|
|
2155
|
+
"expr": {
|
|
2156
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2157
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-13T13:13:21-14:00" }
|
|
2158
|
+
},
|
|
2159
|
+
"expected": 1794626001000
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"id": "epoch-milliseconds-fraction-tenths",
|
|
2163
|
+
"expr": {
|
|
2164
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2165
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21.5Z" }
|
|
2166
|
+
},
|
|
2167
|
+
"expected": 1794626001500
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"id": "epoch-milliseconds-fraction-floored",
|
|
2171
|
+
"description": "A fraction finer than a millisecond is floored, so every port gives the same whole number",
|
|
2172
|
+
"expr": {
|
|
2173
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2174
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21.9999Z" }
|
|
2175
|
+
},
|
|
2176
|
+
"expected": 1794626001999
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"id": "epoch-milliseconds-before-1970-floors-to-the-earlier",
|
|
2180
|
+
"description": "-0.5 ms floors toward the earlier instant, -1, never toward zero",
|
|
2181
|
+
"expr": {
|
|
2182
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2183
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1969-12-31T23:59:59.9995Z" }
|
|
2184
|
+
},
|
|
2185
|
+
"expected": -1
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"id": "epoch-milliseconds-end-of-day",
|
|
2189
|
+
"description": "24:00:00 is the first instant of the next day",
|
|
2190
|
+
"expr": {
|
|
2191
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2192
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T24:00:00Z" }
|
|
2193
|
+
},
|
|
2194
|
+
"expected": 1794700800000
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
"id": "epoch-milliseconds-end-of-day-crosses-the-year",
|
|
2198
|
+
"description": "24:00:00 may carry a fraction of zeros",
|
|
2199
|
+
"expr": {
|
|
2200
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2201
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-12-31T24:00:00.000Z" }
|
|
2202
|
+
},
|
|
2203
|
+
"expected": 1798761600000
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"id": "epoch-milliseconds-leap-day",
|
|
2207
|
+
"description": "2000 is divisible by 400, so it has a 29 February",
|
|
2208
|
+
"expr": {
|
|
2209
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2210
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2000-02-29T12:00:00Z" }
|
|
2211
|
+
},
|
|
2212
|
+
"expected": 951825600000
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
"id": "epoch-milliseconds-year-zero",
|
|
2216
|
+
"description": "Year 0 is 1 BCE in XSD 1.1's proleptic Gregorian calendar",
|
|
2217
|
+
"expr": {
|
|
2218
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2219
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "0000-01-01T00:00:00Z" }
|
|
2220
|
+
},
|
|
2221
|
+
"expected": -62167219200000
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
"id": "epoch-milliseconds-minus-zero-year",
|
|
2225
|
+
"description": "-0000 is in the lexical form, and names year 0",
|
|
2226
|
+
"expr": {
|
|
2227
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2228
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-0000-01-01T00:00:00Z" }
|
|
2229
|
+
},
|
|
2230
|
+
"expected": -62167219200000
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
"id": "epoch-milliseconds-negative-year",
|
|
2234
|
+
"description": "Year -1 is the year before year 0",
|
|
2235
|
+
"expr": {
|
|
2236
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2237
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-0001-12-31T23:59:59Z" }
|
|
2238
|
+
},
|
|
2239
|
+
"expected": -62167219201000
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
"id": "epoch-milliseconds-five-digit-year",
|
|
2243
|
+
"expr": {
|
|
2244
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2245
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "10000-01-01T00:00:00Z" }
|
|
2246
|
+
},
|
|
2247
|
+
"expected": 253402300800000
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"id": "epoch-milliseconds-largest-exact",
|
|
2251
|
+
"description": "The latest instant whose count is at most 2^53 - 1, its sub-millisecond digit floored",
|
|
2252
|
+
"expr": {
|
|
2253
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2254
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "287396-10-12T08:59:00.9919Z" }
|
|
2255
|
+
},
|
|
2256
|
+
"expected": 9007199254740991
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"id": "epoch-milliseconds-smallest-exact",
|
|
2260
|
+
"expr": {
|
|
2261
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2262
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-283457-03-21T15:00:59.009Z" }
|
|
2263
|
+
},
|
|
2264
|
+
"expected": -9007199254740991
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"id": "epoch-milliseconds-reads-a-bound-value",
|
|
2268
|
+
"expr": {
|
|
2269
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2270
|
+
"temporalSource": { "type": "kanonak.org/transformations/VarRef", "varName": "closedAt" }
|
|
2271
|
+
},
|
|
2272
|
+
"env": { "closedAt": "2026-11-14T03:13:21Z" },
|
|
2273
|
+
"expected": 1794626001000
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
"id": "epoch-milliseconds-orders-two-date-times",
|
|
2277
|
+
"description": "Read as numbers, two date-times order as their instants do",
|
|
2278
|
+
"expr": {
|
|
2279
|
+
"type": "kanonak.org/transformations/LessThan",
|
|
2280
|
+
"compareLeft": {
|
|
2281
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2282
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-02-28T23:59:59Z" }
|
|
2283
|
+
},
|
|
2284
|
+
"compareRight": {
|
|
2285
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2286
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01T00:00:00Z" }
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2289
|
+
"expected": 1
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"id": "epoch-milliseconds-orders-across-zones",
|
|
2293
|
+
"description": "09:00 at +01:00 is 08:00 in UTC, before 08:30 in UTC, though its text sorts after",
|
|
2294
|
+
"expr": {
|
|
2295
|
+
"type": "kanonak.org/transformations/LessThanOrEqual",
|
|
2296
|
+
"compareLeft": {
|
|
2297
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2298
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T09:00:00+01:00" }
|
|
2299
|
+
},
|
|
2300
|
+
"compareRight": {
|
|
2301
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2302
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T08:30:00Z" }
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
"expected": 1
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
"id": "epoch-milliseconds-subtract-gives-the-wait",
|
|
2309
|
+
"expr": {
|
|
2310
|
+
"type": "kanonak.org/transformations/Subtract",
|
|
2311
|
+
"arithLeft": {
|
|
2312
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2313
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T10:00:00+01:00" }
|
|
2314
|
+
},
|
|
2315
|
+
"arithRight": {
|
|
2316
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2317
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T08:00:00Z" }
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
"expected": 3600000
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"id": "epoch-milliseconds-no-time-zone",
|
|
2324
|
+
"description": "The instant of a date-time without a time zone is indeterminate",
|
|
2325
|
+
"expr": {
|
|
2326
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2327
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21" }
|
|
2328
|
+
},
|
|
2329
|
+
"expectError": true
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
"id": "epoch-milliseconds-date-is-not-a-date-time",
|
|
2333
|
+
"expr": {
|
|
2334
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2335
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14Z" }
|
|
2336
|
+
},
|
|
2337
|
+
"expectError": true
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"id": "epoch-milliseconds-lower-case-separator",
|
|
2341
|
+
"expr": {
|
|
2342
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2343
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14t03:13:21Z" }
|
|
2344
|
+
},
|
|
2345
|
+
"expectError": true
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"id": "epoch-milliseconds-lower-case-zone",
|
|
2349
|
+
"expr": {
|
|
2350
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2351
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21z" }
|
|
2352
|
+
},
|
|
2353
|
+
"expectError": true
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
"id": "epoch-milliseconds-space-separator",
|
|
2357
|
+
"expr": {
|
|
2358
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2359
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14 03:13:21Z" }
|
|
2360
|
+
},
|
|
2361
|
+
"expectError": true
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
"id": "epoch-milliseconds-leading-whitespace",
|
|
2365
|
+
"expr": {
|
|
2366
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2367
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": " 2026-11-14T03:13:21Z" }
|
|
2368
|
+
},
|
|
2369
|
+
"expectError": true
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"id": "epoch-milliseconds-trailing-newline",
|
|
2373
|
+
"description": "A $ that matches before a final newline would accept this",
|
|
2374
|
+
"expr": {
|
|
2375
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2376
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21Z\n" }
|
|
2377
|
+
},
|
|
2378
|
+
"expectError": true
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
"id": "epoch-milliseconds-missing-seconds",
|
|
2382
|
+
"expr": {
|
|
2383
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2384
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13Z" }
|
|
2385
|
+
},
|
|
2386
|
+
"expectError": true
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"id": "epoch-milliseconds-fraction-without-digits",
|
|
2390
|
+
"expr": {
|
|
2391
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2392
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21.Z" }
|
|
2393
|
+
},
|
|
2394
|
+
"expectError": true
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"id": "epoch-milliseconds-leap-second",
|
|
2398
|
+
"description": "XSD 1.1's seconds stop at 59",
|
|
2399
|
+
"expr": {
|
|
2400
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2401
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2016-12-31T23:59:60Z" }
|
|
2402
|
+
},
|
|
2403
|
+
"expectError": true
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
"id": "epoch-milliseconds-end-of-day-past-midnight",
|
|
2407
|
+
"expr": {
|
|
2408
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2409
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T24:00:01Z" }
|
|
2410
|
+
},
|
|
2411
|
+
"expectError": true
|
|
2412
|
+
},
|
|
2413
|
+
{
|
|
2414
|
+
"id": "epoch-milliseconds-end-of-day-nonzero-fraction",
|
|
2415
|
+
"expr": {
|
|
2416
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2417
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T24:00:00.5Z" }
|
|
2418
|
+
},
|
|
2419
|
+
"expectError": true
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"id": "epoch-milliseconds-not-a-leap-year",
|
|
2423
|
+
"description": "2100 is divisible by 100 and not by 400",
|
|
2424
|
+
"expr": {
|
|
2425
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2426
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2100-02-29T00:00:00Z" }
|
|
2427
|
+
},
|
|
2428
|
+
"expectError": true
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"id": "epoch-milliseconds-day-its-month-lacks",
|
|
2432
|
+
"expr": {
|
|
2433
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2434
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-04-31T00:00:00Z" }
|
|
2435
|
+
},
|
|
2436
|
+
"expectError": true
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"id": "epoch-milliseconds-zone-past-fourteen",
|
|
2440
|
+
"expr": {
|
|
2441
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2442
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21+14:01" }
|
|
2443
|
+
},
|
|
2444
|
+
"expectError": true
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"id": "epoch-milliseconds-zone-without-colon",
|
|
2448
|
+
"expr": {
|
|
2449
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2450
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T03:13:21+0530" }
|
|
2451
|
+
},
|
|
2452
|
+
"expectError": true
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
"id": "epoch-milliseconds-year-with-extra-leading-zero",
|
|
2456
|
+
"description": "Leading zeros only bring a year up to four digits",
|
|
2457
|
+
"expr": {
|
|
2458
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2459
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "02026-11-14T03:13:21Z" }
|
|
2460
|
+
},
|
|
2461
|
+
"expectError": true
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
"id": "epoch-milliseconds-three-digit-year",
|
|
2465
|
+
"expr": {
|
|
2466
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2467
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "202-11-14T03:13:21Z" }
|
|
2468
|
+
},
|
|
2469
|
+
"expectError": true
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"id": "epoch-milliseconds-plus-signed-year",
|
|
2473
|
+
"expr": {
|
|
2474
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2475
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "+2026-11-14T03:13:21Z" }
|
|
2476
|
+
},
|
|
2477
|
+
"expectError": true
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
"id": "epoch-milliseconds-non-ascii-digits",
|
|
2481
|
+
"description": "Only the ASCII digits 0-9 are digits here, never a class such as \\d that admits others",
|
|
2482
|
+
"expr": {
|
|
2483
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2484
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "\u0662\u0660\u0662\u0666-11-14T03:13:21Z" }
|
|
2485
|
+
},
|
|
2486
|
+
"expectError": true
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
"id": "epoch-milliseconds-past-the-largest-exact",
|
|
2490
|
+
"description": "A count past 2^53 - 1 is refused, since a number no longer holds every whole value there",
|
|
2491
|
+
"expr": {
|
|
2492
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2493
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "287396-10-12T08:59:00.992Z" }
|
|
2494
|
+
},
|
|
2495
|
+
"expectError": true
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
"id": "epoch-milliseconds-past-the-smallest-exact",
|
|
2499
|
+
"expr": {
|
|
2500
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2501
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-283457-03-21T15:00:59.008Z" }
|
|
2502
|
+
},
|
|
2503
|
+
"expectError": true
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"id": "epoch-milliseconds-sixteen-digit-year",
|
|
2507
|
+
"expr": {
|
|
2508
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2509
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1000000000000000-01-01T00:00:00Z" }
|
|
2510
|
+
},
|
|
2511
|
+
"expectError": true
|
|
2512
|
+
},
|
|
2513
|
+
{
|
|
2514
|
+
"id": "epoch-milliseconds-year-past-64-bit-milliseconds",
|
|
2515
|
+
"description": "Times 86400000 its day count wraps in 64 bits to -8000751616, a count in range: refused before multiplying",
|
|
2516
|
+
"expr": {
|
|
2517
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2518
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "584556019-01-01T00:00:00Z" }
|
|
2519
|
+
},
|
|
2520
|
+
"expectError": true
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"id": "epoch-milliseconds-year-wraps-into-range",
|
|
2524
|
+
"description": "Times 86400000 its day count wraps in 64 bits to 793450008870912, a count in range: refused before multiplying",
|
|
2525
|
+
"expr": {
|
|
2526
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2527
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "10522000000-01-01T00:00:00Z" }
|
|
2528
|
+
},
|
|
2529
|
+
"expectError": true
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
"id": "epoch-milliseconds-empty-string",
|
|
2533
|
+
"expr": {
|
|
2534
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2535
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "" }
|
|
2536
|
+
},
|
|
2537
|
+
"expectError": true
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"id": "epoch-milliseconds-absent",
|
|
2541
|
+
"description": "Absence is the empty list, which isn't a date-time: a value that may be absent is guarded with IsSet",
|
|
2542
|
+
"expr": {
|
|
2543
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2544
|
+
"temporalSource": { "type": "kanonak.org/transformations/VarRef", "varName": "closedAt" }
|
|
2545
|
+
},
|
|
2546
|
+
"env": { "closedAt": [] },
|
|
2547
|
+
"expectError": true
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
"id": "epoch-milliseconds-number",
|
|
2551
|
+
"expr": {
|
|
2552
|
+
"type": "kanonak.org/transformations/EpochMilliseconds",
|
|
2553
|
+
"temporalSource": { "type": "kanonak.org/transformations/IntegerLiteral", "integerLiteral": 1763090001000 }
|
|
2554
|
+
},
|
|
2555
|
+
"expectError": true
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
"id": "epoch-days-the-epoch",
|
|
2559
|
+
"expr": {
|
|
2560
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2561
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1970-01-01" }
|
|
2562
|
+
},
|
|
2563
|
+
"expected": 0
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
"id": "epoch-days-a-day",
|
|
2567
|
+
"expr": {
|
|
2568
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2569
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14" }
|
|
2570
|
+
},
|
|
2571
|
+
"expected": 20771
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"id": "epoch-days-before-1970",
|
|
2575
|
+
"expr": {
|
|
2576
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2577
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1969-12-31" }
|
|
2578
|
+
},
|
|
2579
|
+
"expected": -1
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
"id": "epoch-days-zone-ignored-plus",
|
|
2583
|
+
"description": "A date's time zone is read and ignored, so it counts the day as written",
|
|
2584
|
+
"expr": {
|
|
2585
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2586
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01+14:00" }
|
|
2587
|
+
},
|
|
2588
|
+
"expected": 20513
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
"id": "epoch-days-zone-ignored-minus",
|
|
2592
|
+
"expr": {
|
|
2593
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2594
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01-12:00" }
|
|
2595
|
+
},
|
|
2596
|
+
"expected": 20513
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"id": "epoch-days-zone-ignored-utc",
|
|
2600
|
+
"expr": {
|
|
2601
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2602
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01Z" }
|
|
2603
|
+
},
|
|
2604
|
+
"expected": 20513
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"id": "epoch-days-leap-day",
|
|
2608
|
+
"expr": {
|
|
2609
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2610
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2000-02-29" }
|
|
2611
|
+
},
|
|
2612
|
+
"expected": 11016
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"id": "epoch-days-year-zero",
|
|
2616
|
+
"description": "Year 0 is divisible by 400, so it's a leap year",
|
|
2617
|
+
"expr": {
|
|
2618
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2619
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "0000-03-01" }
|
|
2620
|
+
},
|
|
2621
|
+
"expected": -719468
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"id": "epoch-days-negative-leap-year",
|
|
2625
|
+
"description": "-4 is divisible by 4, so it's a leap year",
|
|
2626
|
+
"expr": {
|
|
2627
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2628
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-0004-02-29" }
|
|
2629
|
+
},
|
|
2630
|
+
"expected": -720930
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"id": "epoch-days-largest-exact",
|
|
2634
|
+
"expr": {
|
|
2635
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2636
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "24660873954867-01-09" }
|
|
2637
|
+
},
|
|
2638
|
+
"expected": 9007199254740991
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
"id": "epoch-days-smallest-exact",
|
|
2642
|
+
"expr": {
|
|
2643
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2644
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-24660873950928-12-23" }
|
|
2645
|
+
},
|
|
2646
|
+
"expected": -9007199254740991
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"id": "epoch-days-orders-two-dates",
|
|
2650
|
+
"description": "The order that a LessThan over the two strings can never give",
|
|
2651
|
+
"expr": {
|
|
2652
|
+
"type": "kanonak.org/transformations/LessThan",
|
|
2653
|
+
"compareLeft": {
|
|
2654
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2655
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-02-28" }
|
|
2656
|
+
},
|
|
2657
|
+
"compareRight": {
|
|
2658
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2659
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01" }
|
|
2660
|
+
}
|
|
2661
|
+
},
|
|
2662
|
+
"expected": 1
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"id": "epoch-days-subtract-counts-the-days",
|
|
2666
|
+
"expr": {
|
|
2667
|
+
"type": "kanonak.org/transformations/Subtract",
|
|
2668
|
+
"arithLeft": {
|
|
2669
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2670
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01" }
|
|
2671
|
+
},
|
|
2672
|
+
"arithRight": {
|
|
2673
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2674
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-02-28" }
|
|
2675
|
+
}
|
|
2676
|
+
},
|
|
2677
|
+
"expected": 1
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
"id": "epoch-days-date-time-is-not-a-date",
|
|
2681
|
+
"expr": {
|
|
2682
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2683
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-11-14T00:00:00Z" }
|
|
2684
|
+
},
|
|
2685
|
+
"expectError": true
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"id": "epoch-days-not-a-leap-year",
|
|
2689
|
+
"expr": {
|
|
2690
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2691
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "1900-02-29" }
|
|
2692
|
+
},
|
|
2693
|
+
"expectError": true
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"id": "epoch-days-negative-century-not-a-leap-year",
|
|
2697
|
+
"description": "-100 is divisible by 100 and not by 400",
|
|
2698
|
+
"expr": {
|
|
2699
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2700
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-0100-02-29" }
|
|
2701
|
+
},
|
|
2702
|
+
"expectError": true
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
"id": "epoch-days-day-its-month-lacks",
|
|
2706
|
+
"expr": {
|
|
2707
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2708
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-02-30" }
|
|
2709
|
+
},
|
|
2710
|
+
"expectError": true
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"id": "epoch-days-zone-past-fourteen",
|
|
2714
|
+
"expr": {
|
|
2715
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2716
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01-14:30" }
|
|
2717
|
+
},
|
|
2718
|
+
"expectError": true
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"id": "epoch-days-trailing-newline",
|
|
2722
|
+
"expr": {
|
|
2723
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2724
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "2026-03-01\n" }
|
|
2725
|
+
},
|
|
2726
|
+
"expectError": true
|
|
2727
|
+
},
|
|
2728
|
+
{
|
|
2729
|
+
"id": "epoch-days-past-the-largest-exact",
|
|
2730
|
+
"expr": {
|
|
2731
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2732
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "24660873954867-01-10" }
|
|
2733
|
+
},
|
|
2734
|
+
"expectError": true
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"id": "epoch-days-past-the-smallest-exact",
|
|
2738
|
+
"expr": {
|
|
2739
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2740
|
+
"temporalSource": { "type": "kanonak.org/transformations/StringLiteral", "stringLiteral": "-24660873950928-12-22" }
|
|
2741
|
+
},
|
|
2742
|
+
"expectError": true
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"id": "epoch-days-absent",
|
|
2746
|
+
"expr": {
|
|
2747
|
+
"type": "kanonak.org/transformations/EpochDays",
|
|
2748
|
+
"temporalSource": { "type": "kanonak.org/transformations/VarRef", "varName": "takesEffect" }
|
|
2749
|
+
},
|
|
2750
|
+
"env": { "takesEffect": [] },
|
|
2751
|
+
"expectError": true
|
|
1981
2752
|
}
|
|
1982
2753
|
]
|
|
1983
2754
|
}
|