HF RL Explorer

game save files: edge case

game save files: edge case: a task in smol-software-harbor (Harbor dataset). json.encode in src/json.lua writes nan , inf or -inf for such numbers, which no JSON parser accepts. As its header says, NaN and infinities cannot be encoded: raise an error for them; other numbers are encoded as before…

The task

`json.encode` in `src/json.lua` writes `nan`, `inf` or `-inf` for such numbers, which no JSON parser accepts. As its header says, NaN and infinities cannot be encoded: raise an error for them; other numbers are encoded as before. Run `lua tests/run.lua`.

Part of efederici/smol-software-harbor.