Skip to content

Commit

Permalink
Apple Numbers 14.2 export test!
Browse files Browse the repository at this point in the history
  • Loading branch information
nathany-copia committed Sep 30, 2024
1 parent dc8c8c9 commit 7a1022e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added test/test_data/test_apple_numbers.xlsx
Binary file not shown.
7 changes: 7 additions & 0 deletions test/xlsxir_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7a1022e

Please sign in to comment.