✓
Passing This code compiles and runs correctly.
Code
// std/quantity: UTF-8 surface forms — ± separator, · product,
// superscript exponents, named constant pi.
import std/io
import std/quantity
std/quantity:lit { 5.0±0.2 m·s⁻¹ }
| exact a |> std/quantity:render(n: a): t |> std/io:print.ln("{{ t:s }}")
| bad x |> std/io:print.ln("bad")
std/quantity:lit { π m }
| exact a |> std/quantity:render(n: a): t |> std/io:print.ln("{{ t:s }}")
| bad x |> std/io:print.ln("bad")
Actual
5e0|m^1 s^-1 kg^0 A^0 K^0 mol^0 cd^0|2e-1
3.14159265358979323846264338327950288e0|m^1 s^0 kg^0 A^0 K^0 mol^0 cd^0|-
Expected output
5e0|m^1 s^-1 kg^0 A^0 K^0 mol^0 cd^0|2e-1
3.14159265358979323846264338327950288e0|m^1 s^0 kg^0 A^0 K^0 mol^0 cd^0|-
Flows
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (source: 5.0±0.2 m·s⁻¹)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (source: π m)
Test Configuration
MUST_RUN