|
1 | 1 | defmodule Pdf.ObjectTest do |
2 | 2 | use ExUnit.Case, async: true |
| 3 | + import Pdf.Utils |
3 | 4 |
|
4 | 5 | alias Pdf.Object |
5 | 6 | alias Pdf.Dictionary |
6 | | - alias Pdf.Utils |
7 | 7 |
|
8 | 8 | test "new/1" do |
9 | 9 | object = Object.new(1) |
@@ -42,14 +42,14 @@ defmodule Pdf.ObjectTest do |
42 | 42 | test "size" do |
43 | 43 | dict = |
44 | 44 | Dictionary.new() |
45 | | - |> Dictionary.put("Author", Utils.n("Test Author")) |
46 | | - |> Dictionary.put("Creator", Utils.n("Test Creator")) |
47 | | - |> Dictionary.put("Keywords", Utils.n("word word word")) |
48 | | - |> Dictionary.put("Producer", Utils.n("Test producer")) |
49 | | - |> Dictionary.put("Subject", Utils.n("Test Subject")) |
50 | | - |> Dictionary.put("Title", Utils.n("Test Document")) |
51 | | - |> Dictionary.put("Title", Utils.n("Test Document")) |
52 | | - |> Dictionary.put("Title", Utils.n("Test Document")) |
| 45 | + |> Dictionary.put("Author", n("Test Author")) |
| 46 | + |> Dictionary.put("Creator", n("Test Creator")) |
| 47 | + |> Dictionary.put("Keywords", n("word word word")) |
| 48 | + |> Dictionary.put("Producer", n("Test producer")) |
| 49 | + |> Dictionary.put("Subject", n("Test Subject")) |
| 50 | + |> Dictionary.put("Title", n("Test Document")) |
| 51 | + |> Dictionary.put("Title", n("Test Document")) |
| 52 | + |> Dictionary.put("Title", n("Test Document")) |
53 | 53 |
|
54 | 54 | object = Object.new(1, dict) |
55 | 55 |
|
|
0 commit comments