diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-09-16 23:55:38 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-09-16 01:25:50 -0600 |
| commit | 0d777c9dcbace234df0358e5c0aacb6da1348af6 (patch) | |
| tree | 6e7f4ad30014b1cc18f784b63738d40ea77af0a5 /spec/list_spec.rb | |
| parent | 0eaaed2f618cf4ced4eca21554f98515a5c9d4bb (diff) | |
add test to verify multiple, comma-separated ranges can be specified for conum glyphs
Diffstat (limited to 'spec/list_spec.rb')
| -rw-r--r-- | spec/list_spec.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/list_spec.rb b/spec/list_spec.rb index fbc76fb2..f2b96c6c 100644 --- a/spec/list_spec.rb +++ b/spec/list_spec.rb @@ -1573,6 +1573,35 @@ describe 'Asciidoctor::PDF::Converter - List' do end end + it 'should allow conum glyphs to be specified explicitly using multiple unicode ranges' do + pdf = to_pdf <<~'EOS', pdf_theme: { conum_glyphs: '\u2776-\u277a, \u2465-\u2468' }, analyze: true + ---- + 1 <1> + 2 <2> + 3 <3> + 4 <4> + 5 <5> + 6 <6> + 7 <7> + 8 <8> + 9 <9> + ---- + <1> 1 + <2> 2 + <3> 3 + <4> 4 + <5> 5 + <6> 6 + <7> 7 + <8> 8 + <9> 9 + EOS + + conum_lines = pdf.lines.map {|l| l.delete ' 1-9' } + (expect conum_lines).to have_size 18 + (expect conum_lines).to eql [?\u2776, ?\u2777, ?\u2778, ?\u2779, ?\u277a, ?\u2465, ?\u2466, ?\u2467, ?\u2468] * 2 + end + it 'should allow conum glyphs to be specified as single unicode character' do pdf = to_pdf <<~'EOS', pdf_theme: { conum_glyphs: '\u2776' }, analyze: true .... |
