Skip to content

Doctest for Quantity ,KnownUnitQ, and others fail when the documentation is generated. #1473

@mmatera

Description

@mmatera

Description

When I tried to generate the documentation, these symbols failed some tests. The tests do not fail in the standard CI tests, and the output in the terminal front-end is correct.

How to Reproduce

make doctest

Output Given

********** Units and Quantities / KnownUnitQ **********
4396 ( 1): TEST KnownUnitQ["Feet"]
4397 ( 2): TEST KnownUnitQ["Foo"]
4398 ( 3): TEST KnownUnitQ["meter"^2/"second"]
result != wanted
----------------------------------------------------------------------
Test failed: in 
Result: False
Wanted: True
********** Units and Quantities / Quantity **********
4399 ( 1): TEST Quantity["Kilogram"]
4400 ( 2): TEST Quantity[10, "Meters"]
4401 ( 3): TEST Quantity[{10, 20}, "Meters"]
4402 ( 4): TEST Quantity[2, 3/2]
4403 ( 5): TEST QuantityQ[Quantity[2, Second]]
4404 ( 6): TEST Quantity[3, "centimeter"] / Quantity[2, "second"]^2
result != wanted
----------------------------------------------------------------------
Test failed: in 
Result: 3 / 4 centimeter / Null
Wanted: 3 / 4 centimeter / second ^ 2
Additional output:
Quantity::unkunit: Unable to interpret unit specification Null.
Quantity::unkunit: Unable to interpret unit specification 1 / Null.
Quantity::unkunit: Unable to interpret unit specification centimeter / Null.

Expected behavior

No errors

Workarounds

Modify documentation.tex to include the right output.

Priority

Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions