clone

an offline map explorer where each world, from a game map to a city's open data, ships as one .atlas file

feat/atlas-next-horizon
atlas / analysis / testdata / cells / input.json
input.json 4.3K
1{2 "family": "input",3 "about": "What the navigator field keeps of a keystroke, and when the draft becomes a place. Geohash parses whole always — every normalized spelling is an address. S2 is whole-or-nothing: a partial token is not yet a place, a token past the floor clamps and re-tokenizes, and a non-token is refused with null.",4 "cases": [5 {6 "name": "geohash-normalize-M6X!",7 "ground": "test/square-1024",8 "system": "geohash",9 "call": "normalizeInput",10 "args": [11 "M6X!"12 ],13 "expect": "m6x",14 "handDerived": true15 },16 {17 "name": "geohash-normalize-aM6iLo",18 "ground": "test/square-1024",19 "system": "geohash",20 "call": "normalizeInput",21 "args": [22 "aM6iLo"23 ],24 "expect": "m6",25 "handDerived": true26 },27 {28 "name": "geohash-normalize-m6w9",29 "ground": "test/square-1024",30 "system": "geohash",31 "call": "normalizeInput",32 "args": [33 "m6w9"34 ],35 "expect": "m6w",36 "handDerived": true37 },38 {39 "name": "geohash-parse-root",40 "ground": "test/square-1024",41 "system": "geohash",42 "call": "parseInput",43 "args": [44 ""45 ],46 "expect": "",47 "note": "The root is a place.",48 "handDerived": true49 },50 {51 "name": "geohash-parse-m6",52 "ground": "test/square-1024",53 "system": "geohash",54 "call": "parseInput",55 "args": [56 "m6"57 ],58 "expect": "m6",59 "handDerived": true60 },61 {62 "name": "s2-normalize",63 "ground": "test/sphere-8192x4096",64 "system": "s2",65 "call": "normalizeInput",66 "args": [67 "47A1 CB!"68 ],69 "expect": "47a1cb",70 "handDerived": true71 },72 {73 "name": "s2-parse-root",74 "ground": "test/sphere-8192x4096",75 "system": "s2",76 "call": "parseInput",77 "args": [78 ""79 ],80 "expect": "",81 "handDerived": true82 },83 {84 "name": "s2-parse-token",85 "ground": "test/sphere-8192x4096",86 "system": "s2",87 "call": "parseInput",88 "args": [89 "47a1cb"90 ],91 "expect": "47a1cb",92 "handDerived": true93 },94 {95 "name": "s2-parse-truncated-leaf",96 "ground": "test/sphere-8192x4096",97 "system": "s2",98 "call": "parseInput",99 "args": [100 "47a1cb"101 ],102 "expect": "47a1cb",103 "handDerived": true104 },105 {106 "name": "s2-refuses-a-non-token",107 "ground": "test/sphere-8192x4096",108 "system": "s2",109 "call": "parseInput",110 "args": [111 "xyz"112 ],113 "expect": null,114 "note": "Not hex, not a place.",115 "handDerived": true116 },117 {118 "name": "s2-clamps-a-deeper-token",119 "ground": "test/sphere-8192x4096",120 "system": "s2",121 "call": "parseInput",122 "args": [123 "47a1cbd595522b39"124 ],125 "expect": "47a1cb",126 "note": "A token deeper than the telescope's floor clamps to level 10 and comes back canonically spelled."127 },128 {129 "name": "real-normalize-cuts-at-six",130 "ground": "bend-or/2026-08-02/0",131 "system": "geohash",132 "call": "normalizeInput",133 "args": [134 "9RCDXKPB"135 ],136 "expect": "9rcdxk",137 "note": "The anchored floor is six characters, so the field keeps six where a synthetic ground keeps three.",138 "handDerived": true139 },140 {141 "name": "real-parse-refuses-a-short-draft",142 "ground": "bend-or/2026-08-02/0",143 "system": "geohash",144 "call": "parseInput",145 "args": [146 "9rc"147 ],148 "expect": null,149 "note": "Whole or nothing: an address shorter than the base depth names a cell the window's grid never shows, so it is a draft the field holds while the session stays put.",150 "handDerived": true151 },152 {153 "name": "real-parse-accepts-a-base-cell",154 "ground": "bend-or/2026-08-02/0",155 "system": "geohash",156 "call": "parseInput",157 "args": [158 "9rcd"159 ],160 "expect": "9rcd",161 "handDerived": true162 },163 {164 "name": "real-parse-the-root-is-a-place",165 "ground": "bend-or/2026-08-02/0",166 "system": "geohash",167 "call": "parseInput",168 "args": [169 ""170 ],171 "expect": "",172 "handDerived": true173 }174 ]175}