Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange output from REPL with single term exprs and negation #850

Closed
tsandall opened this issue Jul 24, 2018 · 0 comments
Closed

Strange output from REPL with single term exprs and negation #850

tsandall opened this issue Jul 24, 2018 · 0 comments
Labels

Comments

@tsandall
Copy link
Member

tsandall commented Jul 24, 2018

In the example below, the REPL printed "+\n+" after not p; true.

screen shot 2018-07-24 at 3 34 01 pm

@tsandall tsandall added the bug label Jul 24, 2018
tsandall added a commit to tsandall/opa that referenced this issue Jul 26, 2018
The presentation implementation was trying to print a table with no
expression values or variable bindings. With these changes, the
presentation package will output 'true' if there are no vars and all of
the exprs are of type 'bool'.

Fixes open-policy-agent#850

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant