Explorer

std.test-number-to-string

description
Test (definy_run_tests): std.number-to-string writes 0, positive and negative numbers, and the smallest Int64 (whose negation overflows)
type
Boolean
expression
@core.equal(
  left: [
    @std.number-to-string(value: 0),
    @std.number-to-string(value: 1234),
    @std.number-to-string(value: -5),
    @std.number-to-string(value: -1234),
    @std.number-to-string(value: @core.shift-left(left: 1, right: 63))
  ],
  right: ["0", "1234", "-5", "-1234", "-9223372036854775808"]
)
visibility
public
std.test-number-to-string (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: Kp4MX3EoXlJsBUnAtoUigatPEQfcB6tIIDMC9fCUmnM
content hash: OYIm8OxFdmTalhPS6F0DzYAcTRDfljK62lRqxCGU0LY