Skip to content

Simplify on show is kinda annoying #15

@MasonProtter

Description

@MasonProtter

Currently, if I write

julia> using SymbolicUtils, Test; @vars a b;

julia> a * b * a
((a ^ 2) * b)

julia> @test a * b * a == a^2 * b
Test Failed at REPL[33]:1
  Expression: a * b * a == a ^ 2 * b
   Evaluated: ((a ^ 2) * b) == ((a ^ 2) * b)
ERROR: There was an error during testing

Because we simplify the output of Base.show, errors testsets tricky to debug. notice it says Evaluated: ((a ^ 2) * b) == ((a ^ 2) * b)

One can use showraw to see what the actual representation is, but I think maybe we shouldn't be simplifying on show.

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