correct conformity error
This commit is contained in:
@@ -433,12 +433,12 @@ impl<'a, Formatter: HCValueFormatter, Outputter: HCValueOutputter>
|
||||
};
|
||||
|
||||
match heap_val {
|
||||
HeapCellValue::NamedStr(arity, name, Some(fixity)) => {
|
||||
HeapCellValue::NamedStr(arity, ref name, Some(fixity)) if name.as_str() != "," => {
|
||||
if composite_brackets {
|
||||
self.state_stack.push(TokenOrRedirect::Close);
|
||||
}
|
||||
|
||||
let ct = ClauseType::from(name, arity, Some(fixity));
|
||||
let ct = ClauseType::from(name.clone(), arity, Some(fixity));
|
||||
self.formatter.format_clause(iter, arity, ct, &mut self.state_stack);
|
||||
|
||||
if composite_brackets {
|
||||
|
||||
@@ -1669,6 +1669,8 @@ fn test_queries_on_builtins()
|
||||
[["X = (-)-(-)"]]);
|
||||
assert_prolog_success!(&mut wam, "?- X = ((:-):-(:-)).",
|
||||
[["X = (:-):-(:-)"]]);
|
||||
assert_prolog_success!(&mut wam, "?- X = (a:-b,c).",
|
||||
[["X = a:-b,c"]]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user