Skip to content

Commit 7a1022e

Browse files
committed
Apple Numbers 14.2 export test!
1 parent dc8c8c9 commit 7a1022e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
48.8 KB
Binary file not shown.

test/xlsxir_test.exs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ defmodule XlsxirTest do
66
def path(), do: "./test/test_data/test.xlsx"
77
def rb_path(), do: "./test/test_data/red_black.xlsx"
88
def missing_styles_path(), do: "./test/test_data/missing_styles.xlsx"
9+
def apple_numbers_path(), do: "./test/test_data/test_apple_numbers.xlsx"
910

1011
test "second worksheet is parsed with index argument of 1" do
1112
{:ok, pid} = extract(path(), 1)
@@ -74,6 +75,12 @@ defmodule XlsxirTest do
7475
close(pid)
7576
end
7677

78+
test "able to parse Apple Numbers Excel export" do
79+
{:ok, pid} = extract(apple_numbers_path(), 1)
80+
assert get_list(pid) == [[1, 2], [3, 4]]
81+
close(pid)
82+
end
83+
7784
test "multi_extract/4" do
7885
res = multi_extract(path())
7986
{:ok, tid} = hd(res)

0 commit comments

Comments
 (0)