diff --git a/test/test_data/test_apple_numbers.xlsx b/test/test_data/test_apple_numbers.xlsx new file mode 100644 index 0000000..904ef66 Binary files /dev/null and b/test/test_data/test_apple_numbers.xlsx differ diff --git a/test/xlsxir_test.exs b/test/xlsxir_test.exs index 3090e76..deeee74 100644 --- a/test/xlsxir_test.exs +++ b/test/xlsxir_test.exs @@ -6,6 +6,7 @@ defmodule XlsxirTest do def path(), do: "./test/test_data/test.xlsx" def rb_path(), do: "./test/test_data/red_black.xlsx" def missing_styles_path(), do: "./test/test_data/missing_styles.xlsx" + def apple_numbers_path(), do: "./test/test_data/test_apple_numbers.xlsx" test "second worksheet is parsed with index argument of 1" do {:ok, pid} = extract(path(), 1) @@ -74,6 +75,12 @@ defmodule XlsxirTest do close(pid) end + test "able to parse Apple Numbers Excel export" do + {:ok, pid} = extract(apple_numbers_path(), 1) + assert get_list(pid) == [[1, 2], [3, 4]] + close(pid) + end + test "multi_extract/4" do res = multi_extract(path()) {:ok, tid} = hd(res)