Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions base/src/test/test_cell_info_n_sheets
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#![allow(clippy::unwrap_used)]

use crate::test::util::new_empty_model;

#[test]
fn arguments() {
let mut model = new_empty_model();
model._set("A1", "=CELL("address",A1)");
model._set("A2", "=CELL()");

model._set("A3", "=INFO("system")");
model._set("A4", "=INFO()");

model._set("A5", "=N(TRUE)");
model._set("A6", "=N()");
model._set("A7", "=N(1, 2)");

model._set("A8", "=SHEETS()");
model._set("A9", "=SHEETS(1)");

model.evaluate();

assert_eq!(model._get_text("A1"), *"$A$1");
assert_eq!(model._get_text("A2"), *"#ERROR!");

assert_eq!(model._get_text("A3"), *"#N/IMPL!");
assert_eq!(model._get_text("A4"), *"#ERROR!");

assert_eq!(model._get_text("A5"), *"1");
assert_eq!(model._get_text("A6"), *"#ERROR!");
assert_eq!(model._get_text("A7"), *"#ERROR!");

assert_eq!(model._get_text("A8"), *"1");
assert_eq!(model._get_text("A9"), *"#N/IMPL!");
}
6 changes: 3 additions & 3 deletions docs/src/functions/information.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir

| Function | Status | Documentation |
| ---------- | ---------------------------------------------- | ------------- |
| CELL | <Badge type="info" text="Not implemented yet" /> | – |
| CELL | <Badge type="tip" text="Available" /> | – |
| ERROR.TYPE | <Badge type="tip" text="Available" /> | – |
| INFO | <Badge type="info" text="Not implemented yet" /> | – |
| ISBLANK | <Badge type="tip" text="Available" /> | – |
Expand All @@ -20,7 +20,7 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
| ISEVEN | <Badge type="tip" text="Available" /> | – |
| ISFORMULA | <Badge type="tip" text="Available" /> | – |
| ISLOGICAL | <Badge type="tip" text="Available" /> | – |
| ISNA | <Badge type="info" text="Not implemented yet" /> | – |
| ISNA | <Badge type="tip" text="Available" /> | – |
| ISNONTEXT | <Badge type="tip" text="Available" /> | – |
| ISNUMBER | <Badge type="tip" text="Available" /> | – |
| ISODD | <Badge type="tip" text="Available" /> | – |
Expand All @@ -30,5 +30,5 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
| N | <Badge type="info" text="Not implemented yet" /> | – |
| NA | <Badge type="tip" text="Available" /> | – |
| SHEET | <Badge type="tip" text="Available" /> | – |
| SHEETS | <Badge type="info" text="Not implemented yet" /> | – |
| SHEETS | <Badge type="tip" text="Available" /> | – |
| TYPE | <Badge type="tip" text="Available" /> | – |
3 changes: 1 addition & 2 deletions docs/src/functions/information/cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# CELL

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 This function is implemented but currently lacks detailed documentation. For guidance, you may refer to the equivalent functionality in [Microsoft Excel documentation](https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/information/n.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# N

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 This function is implemented but currently lacks detailed documentation. For guidance, you may refer to the equivalent functionality in [Microsoft Excel documentation](https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/information/sheets.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# SHEETS

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 This function is implemented but currently lacks detailed documentation. For guidance, you may refer to the equivalent functionality in [Microsoft Excel documentation](https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb).
:::
Binary file added xlsx/tests/calc_tests/CELL.xlsx
Binary file not shown.
Binary file added xlsx/tests/calc_tests/N.xlsx
Binary file not shown.
Binary file removed xlsx/tests/calc_tests/N_CELL_INFO_SHEETS.xlsx
Binary file not shown.
Binary file added xlsx/tests/calc_tests/SHEET_SHEETS.xlsx
Binary file not shown.