Add a test showing we're not handling table formulas.

This commit is contained in:
Tom Alexander 2023-09-08 22:42:24 -04:00
parent 0105b49d0d
commit cc56b79683
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
| Name | Price | Quantity | Total |
|------+-------+----------+-------|
| foo | 7 | 4 | 28 |
| bar | 3.5 | 3 | 10.5 |
|------+-------+----------+-------|
| | | 7 | 38.5 |
#+tblfm: $4=$2*$3::@>$4=vsum(@2..@-1)
#+tblfm: @>$3=vsum(@2..@-1)

View File

@ -1075,6 +1075,10 @@ fn compare_table<'s>(
Ok(_) => {}
};
// TODO: Compare :type :tblfm :value
//
// :tblfm is a list () filled with quoted strings containing the value for any tblfm keywords at the end of the table.
for (emacs_child, rust_child) in children.iter().skip(2).zip(rust.children.iter()) {
child_status.push(compare_table_row(source, emacs_child, rust_child)?);
}
@ -1112,6 +1116,10 @@ fn compare_table_row<'s>(
Ok(_) => {}
};
// TODO: Compare :type
//
// :type is an unquoted atom of either standard or rule
for (emacs_child, rust_child) in children.iter().skip(2).zip(rust.children.iter()) {
child_status.push(compare_table_cell(source, emacs_child, rust_child)?);
}