✓
Passing This code compiles and runs correctly.
Code
// std/quantity: 10 m / 4 s = 2.5 m/s — dims subtract.
import std/io
import std/quantity
std/quantity:lit { 10 m }
| exact a |> std/quantity:lit { 4 s }
| exact b |> std/quantity:div(a, b, prec: 20)
| exact r |> std/quantity:render(n: r): t |> std/io:print.ln("{{ t:s }}")
| div-zero |> std/io:print.ln("divzero")
| mixed-cov |> std/io:print.ln("mixed-cov")
| bad x |> std/io:print.ln("{{ x:s }}")
| sym-unc |> std/io:print.ln("sym-unc")
| bad x |> std/io:print.ln("bad")
| bad y |> std/io:print.ln("bad")
Actual
2.5e0|m^1 s^-1 kg^0 A^0 K^0 mol^0 cd^0|-
Expected output
2.5e0|m^1 s^-1 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: 10 m)
Test Configuration
MUST_RUN