Files
anonymous_github/backend/internal/server/testdata/options.json
T

3817 lines
80 KiB
JSON

[
{
"name": "repo/empty",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/scalar-terms-0",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
1,
true,
false,
-42,
0
],
"options": {}
},
"expected": {
"terms": [
"1",
"true",
"false",
"-42",
"0"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice XXXX-5 XXXX-XXXX-1 XXXX-4 XXXX-2 XXXX-3 XXXX-5.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/scalar-terms-1",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
0.000001,
1e-7,
100000000000000000000,
1e+21
],
"options": {}
},
"expected": {
"terms": [
"0.000001",
"1e-7",
"100000000000000000000",
"1e+21"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice 0 1 -42 true false XXXX-1 XXXX-2 XXXX-3 1e+21 keep"
},
{
"name": "repo/scalar-terms-2",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"",
false,
"Alice"
],
"options": {}
},
"expected": {
"terms": [
"",
"false",
"Alice"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-3 0 1 -42 true XXXX-2 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/scalar-terms-3",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
0,
1.25,
9007199254740992
],
"options": {}
},
"expected": {
"terms": [
"0",
"1.25",
"9007199254740992"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice XXXX-1 1 -42 true false XXXX-1.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/all-true",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true,
"diff": true,
"unknown": true,
"expirationMode": "never",
"pageSource": {
"branch": "docs",
"path": "/site",
"private": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationMode": "never",
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true,
"pageSource": {
"branch": "docs",
"path": "/site"
}
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/all-false",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false,
"diff": false,
"unknown": false,
"expirationMode": "never",
"pageSource": {
"branch": "docs",
"path": "/site",
"private": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationMode": "never",
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false,
"pageSource": {
"branch": "docs",
"path": "/site"
}
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-null",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": null,
"image": null,
"pdf": null,
"notebook": null,
"link": null,
"page": null,
"title": null,
"body": null,
"comments": null,
"content": null,
"origin": null,
"username": null,
"date": null,
"diff": null
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": null,
"image": null,
"pdf": null,
"notebook": null,
"link": null,
"page": null
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-0",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": 0,
"image": 0,
"pdf": 0,
"notebook": 0,
"link": 0,
"page": 0,
"title": 0,
"body": 0,
"comments": 0,
"content": 0,
"origin": 0,
"username": 0,
"date": 0,
"diff": 0
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-1",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": 1,
"image": 1,
"pdf": 1,
"notebook": 1,
"link": 1,
"page": 1,
"title": 1,
"body": 1,
"comments": 1,
"content": 1,
"origin": 1,
"username": 1,
"date": 1,
"diff": 1
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-\"0\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "0",
"image": "0",
"pdf": "0",
"notebook": "0",
"link": "0",
"page": "0",
"title": "0",
"body": "0",
"comments": "0",
"content": "0",
"origin": "0",
"username": "0",
"date": "0",
"diff": "0"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-\"1\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "1",
"image": "1",
"pdf": "1",
"notebook": "1",
"link": "1",
"page": "1",
"title": "1",
"body": "1",
"comments": "1",
"content": "1",
"origin": "1",
"username": "1",
"date": "1",
"diff": "1"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-\"true\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "true",
"image": "true",
"pdf": "true",
"notebook": "true",
"link": "true",
"page": "true",
"title": "true",
"body": "true",
"comments": "true",
"content": "true",
"origin": "true",
"username": "true",
"date": "true",
"diff": "true"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-\"false\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "false",
"image": "false",
"pdf": "false",
"notebook": "false",
"link": "false",
"page": "false",
"title": "false",
"body": "false",
"comments": "false",
"content": "false",
"origin": "false",
"username": "false",
"date": "false",
"diff": "false"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-\"yes\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "yes",
"image": "yes",
"pdf": "yes",
"notebook": "yes",
"link": "yes",
"page": "yes",
"title": "yes",
"body": "yes",
"comments": "yes",
"content": "yes",
"origin": "yes",
"username": "yes",
"date": "yes",
"diff": "yes"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/boolean-coercion-\"no\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "no",
"image": "no",
"pdf": "no",
"notebook": "no",
"link": "no",
"page": "no",
"title": "no",
"body": "no",
"comments": "no",
"content": "no",
"origin": "no",
"username": "no",
"date": "no",
"diff": "no"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-null",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": null
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": ""
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-false",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": false
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-0",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 0
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-true",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": true
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1970-01-01T00:00:00.001Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-1",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 1
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1970-01-01T00:00:00.001Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration--1.5",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": -1.5
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1969-12-31T23:59:59.999Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-1700000000123",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 1700000000123
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2023-11-14T22:13:20.123Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-2026-06-01T12:30:00.000Z",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-06-01T12:30:00.000Z"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-06-01T12:30:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-0001-01-01",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "0001-01-01"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "0001-01-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-March 1 2026",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "March 1 2026"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-2026-02-29",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-02-29"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-2026-02-28T24:00:00Z",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-02-28T24:00:00Z"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-2026,3,1",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": [
"2026",
"3",
"1"
]
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-2026-03-01",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": [
"2026-03-01"
]
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/expiration-2026-03-01T01:00:00+02:00",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-03-01T01:00:00+02:00"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-02-28T23:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/invalid-boolean-\"\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": ""
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean-\"TRUE\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": "TRUE"
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean-\"False\"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": "False"
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean-\" yes \"",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": " yes "
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean-2",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": 2
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean--1",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": -1
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean-[]",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": []
}
},
"rejected": true
},
{
"name": "repo/invalid-boolean-{}",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": {}
}
},
"rejected": true
},
{
"name": "repo/page-source",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"pageSource": {
"branch": "docs",
"path": "/",
"arbitrary": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"pageSource": {
"branch": "docs",
"path": "/"
}
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "repo/irrelevant-invalid-options",
"kind": "repo",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"diff": "invalid",
"content": 123
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/empty",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/scalar-terms-0",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
1,
true,
false,
-42,
0
],
"options": {}
},
"expected": {
"terms": [
"1",
"true",
"false",
"-42",
"0"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice XXXX-5 XXXX-XXXX-1 XXXX-4 XXXX-2 XXXX-3 XXXX-5.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/scalar-terms-1",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
0.000001,
1e-7,
100000000000000000000,
1e+21
],
"options": {}
},
"expected": {
"terms": [
"0.000001",
"1e-7",
"100000000000000000000",
"1e+21"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice 0 1 -42 true false XXXX-1 XXXX-2 XXXX-3 1e+21 keep"
},
{
"name": "gist/scalar-terms-2",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"",
false,
"Alice"
],
"options": {}
},
"expected": {
"terms": [
"",
"false",
"Alice"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-3 0 1 -42 true XXXX-2 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/scalar-terms-3",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
0,
1.25,
9007199254740992
],
"options": {}
},
"expected": {
"terms": [
"0",
"1.25",
"9007199254740992"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice XXXX-1 1 -42 true false XXXX-1.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/all-true",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true,
"diff": true,
"unknown": true,
"expirationMode": "never",
"pageSource": {
"branch": "docs",
"path": "/site",
"private": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationMode": "never",
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/all-false",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false,
"diff": false,
"unknown": false,
"expirationMode": "never",
"pageSource": {
"branch": "docs",
"path": "/site",
"private": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationMode": "never",
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-null",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": null,
"image": null,
"pdf": null,
"notebook": null,
"link": null,
"page": null,
"title": null,
"body": null,
"comments": null,
"content": null,
"origin": null,
"username": null,
"date": null,
"diff": null
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": null,
"image": null,
"link": null,
"title": null,
"body": null,
"comments": null,
"content": null,
"origin": null,
"username": null,
"date": null
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-0",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": 0,
"image": 0,
"pdf": 0,
"notebook": 0,
"link": 0,
"page": 0,
"title": 0,
"body": 0,
"comments": 0,
"content": 0,
"origin": 0,
"username": 0,
"date": 0,
"diff": 0
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-1",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": 1,
"image": 1,
"pdf": 1,
"notebook": 1,
"link": 1,
"page": 1,
"title": 1,
"body": 1,
"comments": 1,
"content": 1,
"origin": 1,
"username": 1,
"date": 1,
"diff": 1
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-\"0\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "0",
"image": "0",
"pdf": "0",
"notebook": "0",
"link": "0",
"page": "0",
"title": "0",
"body": "0",
"comments": "0",
"content": "0",
"origin": "0",
"username": "0",
"date": "0",
"diff": "0"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-\"1\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "1",
"image": "1",
"pdf": "1",
"notebook": "1",
"link": "1",
"page": "1",
"title": "1",
"body": "1",
"comments": "1",
"content": "1",
"origin": "1",
"username": "1",
"date": "1",
"diff": "1"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-\"true\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "true",
"image": "true",
"pdf": "true",
"notebook": "true",
"link": "true",
"page": "true",
"title": "true",
"body": "true",
"comments": "true",
"content": "true",
"origin": "true",
"username": "true",
"date": "true",
"diff": "true"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-\"false\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "false",
"image": "false",
"pdf": "false",
"notebook": "false",
"link": "false",
"page": "false",
"title": "false",
"body": "false",
"comments": "false",
"content": "false",
"origin": "false",
"username": "false",
"date": "false",
"diff": "false"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-\"yes\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "yes",
"image": "yes",
"pdf": "yes",
"notebook": "yes",
"link": "yes",
"page": "yes",
"title": "yes",
"body": "yes",
"comments": "yes",
"content": "yes",
"origin": "yes",
"username": "yes",
"date": "yes",
"diff": "yes"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/boolean-coercion-\"no\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "no",
"image": "no",
"pdf": "no",
"notebook": "no",
"link": "no",
"page": "no",
"title": "no",
"body": "no",
"comments": "no",
"content": "no",
"origin": "no",
"username": "no",
"date": "no",
"diff": "no"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-null",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": null
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": ""
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-false",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": false
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-0",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 0
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-true",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": true
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1970-01-01T00:00:00.001Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-1",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 1
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1970-01-01T00:00:00.001Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration--1.5",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": -1.5
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1969-12-31T23:59:59.999Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-1700000000123",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 1700000000123
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2023-11-14T22:13:20.123Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-2026-06-01T12:30:00.000Z",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-06-01T12:30:00.000Z"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-06-01T12:30:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-0001-01-01",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "0001-01-01"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "0001-01-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-March 1 2026",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "March 1 2026"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-2026-02-29",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-02-29"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-2026-02-28T24:00:00Z",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-02-28T24:00:00Z"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-2026,3,1",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": [
"2026",
"3",
"1"
]
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-2026-03-01",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": [
"2026-03-01"
]
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/expiration-2026-03-01T01:00:00+02:00",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-03-01T01:00:00+02:00"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-02-28T23:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/invalid-boolean-\"\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": ""
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean-\"TRUE\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": "TRUE"
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean-\"False\"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": "False"
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean-\" yes \"",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": " yes "
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean-2",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": 2
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean--1",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": -1
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean-[]",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": []
}
},
"rejected": true
},
{
"name": "gist/invalid-boolean-{}",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": {}
}
},
"rejected": true
},
{
"name": "gist/page-source",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"pageSource": {
"branch": "docs",
"path": "/",
"arbitrary": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "gist/irrelevant-invalid-options",
"kind": "gist",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"page": "invalid",
"pdf": 123
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/empty",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/scalar-terms-0",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
1,
true,
false,
-42,
0
],
"options": {}
},
"expected": {
"terms": [
"1",
"true",
"false",
"-42",
"0"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice XXXX-5 XXXX-XXXX-1 XXXX-4 XXXX-2 XXXX-3 XXXX-5.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/scalar-terms-1",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
0.000001,
1e-7,
100000000000000000000,
1e+21
],
"options": {}
},
"expected": {
"terms": [
"0.000001",
"1e-7",
"100000000000000000000",
"1e+21"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice 0 1 -42 true false XXXX-1 XXXX-2 XXXX-3 1e+21 keep"
},
{
"name": "pr/scalar-terms-2",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"",
false,
"Alice"
],
"options": {}
},
"expected": {
"terms": [
"",
"false",
"Alice"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-3 0 1 -42 true XXXX-2 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/scalar-terms-3",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
0,
1.25,
9007199254740992
],
"options": {}
},
"expected": {
"terms": [
"0",
"1.25",
"9007199254740992"
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "Alice XXXX-1 1 -42 true false XXXX-1.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/all-true",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": true,
"image": true,
"pdf": true,
"notebook": true,
"link": true,
"page": true,
"title": true,
"body": true,
"comments": true,
"content": true,
"origin": true,
"username": true,
"date": true,
"diff": true,
"unknown": true,
"expirationMode": "never",
"pageSource": {
"branch": "docs",
"path": "/site",
"private": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationMode": "never",
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"diff": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/all-false",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": false,
"image": false,
"pdf": false,
"notebook": false,
"link": false,
"page": false,
"title": false,
"body": false,
"comments": false,
"content": false,
"origin": false,
"username": false,
"date": false,
"diff": false,
"unknown": false,
"expirationMode": "never",
"pageSource": {
"branch": "docs",
"path": "/site",
"private": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationMode": "never",
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"diff": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-null",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": null,
"image": null,
"pdf": null,
"notebook": null,
"link": null,
"page": null,
"title": null,
"body": null,
"comments": null,
"content": null,
"origin": null,
"username": null,
"date": null,
"diff": null
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": null,
"image": null,
"link": null,
"title": null,
"body": null,
"comments": null,
"diff": null,
"origin": null,
"username": null,
"date": null
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-0",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": 0,
"image": 0,
"pdf": 0,
"notebook": 0,
"link": 0,
"page": 0,
"title": 0,
"body": 0,
"comments": 0,
"content": 0,
"origin": 0,
"username": 0,
"date": 0,
"diff": 0
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"diff": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-1",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": 1,
"image": 1,
"pdf": 1,
"notebook": 1,
"link": 1,
"page": 1,
"title": 1,
"body": 1,
"comments": 1,
"content": 1,
"origin": 1,
"username": 1,
"date": 1,
"diff": 1
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"diff": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-\"0\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "0",
"image": "0",
"pdf": "0",
"notebook": "0",
"link": "0",
"page": "0",
"title": "0",
"body": "0",
"comments": "0",
"content": "0",
"origin": "0",
"username": "0",
"date": "0",
"diff": "0"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"diff": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-\"1\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "1",
"image": "1",
"pdf": "1",
"notebook": "1",
"link": "1",
"page": "1",
"title": "1",
"body": "1",
"comments": "1",
"content": "1",
"origin": "1",
"username": "1",
"date": "1",
"diff": "1"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"diff": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-\"true\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "true",
"image": "true",
"pdf": "true",
"notebook": "true",
"link": "true",
"page": "true",
"title": "true",
"body": "true",
"comments": "true",
"content": "true",
"origin": "true",
"username": "true",
"date": "true",
"diff": "true"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"diff": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-\"false\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "false",
"image": "false",
"pdf": "false",
"notebook": "false",
"link": "false",
"page": "false",
"title": "false",
"body": "false",
"comments": "false",
"content": "false",
"origin": "false",
"username": "false",
"date": "false",
"diff": "false"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"diff": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-\"yes\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "yes",
"image": "yes",
"pdf": "yes",
"notebook": "yes",
"link": "yes",
"page": "yes",
"title": "yes",
"body": "yes",
"comments": "yes",
"content": "yes",
"origin": "yes",
"username": "yes",
"date": "yes",
"diff": "yes"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": true,
"image": true,
"link": true,
"title": true,
"body": true,
"comments": true,
"diff": true,
"origin": true,
"username": true,
"date": true
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/boolean-coercion-\"no\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"update": "no",
"image": "no",
"pdf": "no",
"notebook": "no",
"link": "no",
"page": "no",
"title": "no",
"body": "no",
"comments": "no",
"content": "no",
"origin": "no",
"username": "no",
"date": "no",
"diff": "no"
}
},
"expected": {
"terms": [
"Alice",
""
],
"update": false,
"image": false,
"link": false,
"title": false,
"body": false,
"comments": false,
"diff": false,
"origin": false,
"username": false,
"date": false
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-null",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": null
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": ""
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-false",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": false
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-0",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 0
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-true",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": true
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1970-01-01T00:00:00.001Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-1",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 1
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1970-01-01T00:00:00.001Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration--1.5",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": -1.5
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "1969-12-31T23:59:59.999Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-1700000000123",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": 1700000000123
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2023-11-14T22:13:20.123Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-2026-06-01T12:30:00.000Z",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-06-01T12:30:00.000Z"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-06-01T12:30:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-0001-01-01",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "0001-01-01"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "0001-01-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-March 1 2026",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "March 1 2026"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-2026-02-29",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-02-29"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-2026-02-28T24:00:00Z",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-02-28T24:00:00Z"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-2026,3,1",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": [
"2026",
"3",
"1"
]
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-2026-03-01",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": [
"2026-03-01"
]
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-03-01T00:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/expiration-2026-03-01T01:00:00+02:00",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"expirationDate": "2026-03-01T01:00:00+02:00"
}
},
"expected": {
"terms": [
"Alice",
""
],
"expirationDate": "2026-02-28T23:00:00.000Z"
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/invalid-boolean-\"\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": ""
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean-\"TRUE\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": "TRUE"
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean-\"False\"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": "False"
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean-\" yes \"",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": " yes "
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean-2",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": 2
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean--1",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": -1
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean-[]",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": []
}
},
"rejected": true
},
{
"name": "pr/invalid-boolean-{}",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice"
],
"options": {
"image": {}
}
},
"rejected": true
},
{
"name": "pr/page-source",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"pageSource": {
"branch": "docs",
"path": "/",
"arbitrary": "discard"
}
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
},
{
"name": "pr/irrelevant-invalid-options",
"kind": "pr",
"body": {
"source": {
"branch": "main",
"commit": "abc"
},
"terms": [
"Alice",
""
],
"options": {
"page": "invalid",
"pdf": 123
}
},
"expected": {
"terms": [
"Alice",
""
]
},
"input": "Alice 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep",
"output": "XXXX-1 0 1 -42 true false 0.000001 1e-7 100000000000000000000 1e+21 keep"
}
]