{
"documents": [
{
"name": "numbers.json as json",
"file": "numbers.json",
"fileType": "json",
"expected": [
{
"value": "8080",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "-325",
"notation": "decimal"
},
{
"value": "1",
"notation": "decimal"
},
{
"value": "2.5",
"notation": "decimal"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "1e+21",
"notation": "decimal"
},
{
"value": "1e-7",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.yaml as yaml",
"file": "numbers.yaml",
"fileType": "yaml",
"expected": [
{
"value": "8080",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "26",
"notation": "decimal"
},
{
"value": "1",
"notation": "decimal"
},
{
"value": "2.5",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.toml as toml",
"file": "numbers.toml",
"fileType": "toml",
"expected": [
{
"value": "8080",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "26",
"notation": "decimal"
},
{
"value": "1000",
"notation": "decimal"
},
{
"value": "1",
"notation": "decimal"
},
{
"value": "2",
"notation": "decimal"
},
{
"value": "1.5",
"notation": "decimal"
},
{
"value": "2.5",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "mixed-array.toml as toml",
"file": "mixed-array.toml",
"fileType": "toml",
"expected": [],
"errors": [
"Failed to parse TOML: Inline lists must be a single type, not a mix of integer and float at row 1, col 18, pos 17:\n1> limits = [1, 2.5]\n ^\n2: \n\n"
]
},
{
"name": "numbers.ini as ini",
"file": "numbers.ini",
"fileType": "ini",
"expected": [
{
"value": "8080",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "-1500",
"notation": "scientific"
}
],
"errors": []
},
{
"name": "numbers.env as env",
"file": "numbers.env",
"fileType": "env",
"expected": [
{
"value": "8080",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "7",
"notation": "decimal"
},
{
"value": "0.5",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.csv as csv",
"file": "numbers.csv",
"fileType": "csv",
"expected": [
{
"value": "1",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "2",
"notation": "decimal"
},
{
"value": "3",
"notation": "decimal"
},
{
"value": "-1500",
"notation": "scientific"
}
],
"errors": []
},
{
"name": "numbers.txt as unknown",
"file": "numbers.txt",
"fileType": "unknown",
"expected": [
{
"value": "1.2",
"notation": "decimal"
},
{
"value": "0.3",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "1000",
"notation": "decimal"
},
{
"value": "-700",
"notation": "scientific"
}
],
"errors": []
},
{
"name": "numbers.py as python",
"file": "numbers.py",
"fileType": "python",
"expected": [
{
"value": "8080",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "10",
"notation": "binary"
},
{
"value": "493",
"notation": "octal"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "1e-7",
"notation": "scientific"
},
{
"value": "3",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.rs as rust",
"file": "numbers.rs",
"fileType": "rust",
"expected": [
{
"value": "65535",
"notation": "hex"
},
{
"value": "10",
"notation": "binary"
},
{
"value": "493",
"notation": "octal"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "10",
"notation": "decimal"
},
{
"value": "2.75",
"notation": "decimal"
},
{
"value": "755",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.go as go",
"file": "numbers.go",
"fileType": "go",
"expected": [
{
"value": "493",
"notation": "octal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "1500",
"notation": "scientific"
},
{
"value": "42",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.java as java",
"file": "numbers.java",
"fileType": "java",
"expected": [
{
"value": "493",
"notation": "octal"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "0.0825",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.ts as typescript",
"file": "numbers.ts",
"fileType": "typescript",
"expected": [
{
"value": "9007199254740992",
"notation": "bigint"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "4",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.kt as kotlin",
"file": "numbers.kt",
"fileType": "kotlin",
"expected": [
{
"value": "755",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "10",
"notation": "binary"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "100",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "4",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.cs as csharp",
"file": "numbers.cs",
"fileType": "csharp",
"expected": [
{
"value": "755",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "10",
"notation": "binary"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "4",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.cpp as cpp",
"file": "numbers.cpp",
"fileType": "cpp",
"expected": [
{
"value": "493",
"notation": "octal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "1.5",
"notation": "decimal"
},
{
"value": "4",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.c as c",
"file": "numbers.c",
"fileType": "c",
"expected": [
{
"value": "493",
"notation": "octal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "100",
"notation": "decimal"
},
{
"value": "1",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.js as javascript",
"file": "numbers.js",
"fileType": "javascript",
"expected": [
{
"value": "9007199254740992",
"notation": "bigint"
},
{
"value": "755",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "1000000",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "4",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.sql as sql",
"file": "numbers.sql",
"fileType": "sql",
"expected": [
{
"value": "755",
"notation": "decimal"
},
{
"value": "42",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "1",
"notation": "decimal"
},
{
"value": "7",
"notation": "decimal"
}
],
"errors": []
},
{
"name": "numbers.sh as shellscript",
"file": "numbers.sh",
"fileType": "shellscript",
"expected": [
{
"value": "755",
"notation": "decimal"
},
{
"value": "255",
"notation": "hex"
},
{
"value": "1",
"notation": "decimal"
},
{
"value": "0.0825",
"notation": "decimal"
},
{
"value": "0",
"notation": "decimal"
}
],
"errors": []
}
],
"rendering": [
{
"input": "0",
"expected": "0"
},
{
"input": "-0",
"expected": "0"
},
{
"input": "1",
"expected": "1"
},
{
"input": "1.5",
"expected": "1.5"
},
{
"input": "-325",
"expected": "-325"
},
{
"input": "0.1",
"expected": "0.1"
},
{
"input": "0.0825",
"expected": "0.0825"
},
{
"input": "1e-6",
"expected": "0.000001"
},
{
"input": "9.999e-7",
"expected": "9.999e-7"
},
{
"input": "1e-7",
"expected": "1e-7"
},
{
"input": "5e-324",
"expected": "5e-324"
},
{
"input": "1e20",
"expected": "100000000000000000000"
},
{
"input": "1e21",
"expected": "1e+21"
},
{
"input": "1.7976931348623157e308",
"expected": "1.7976931348623157e+308"
},
{
"input": "123456789012345680000",
"expected": "123456789012345680000"
},
{
"input": "0.000001",
"expected": "0.000001"
},
{
"input": "0.0000001",
"expected": "1e-7"
},
{
"input": "100",
"expected": "100"
},
{
"input": "2.5e-10",
"expected": "2.5e-10"
},
{
"input": "0.30000000000000004",
"expected": "0.30000000000000004"
},
{
"input": "9007199254740993",
"expected": "9007199254740992"
}
]
}