Skip to content

Commit

Permalink
fix syntax of dlist in testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Oct 29, 2019
1 parent 42abb84 commit 921c901
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/test_htmlbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def test_dlist
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo\n foo.\n bar.\n")
actual = compile_block(" : foo\n foo.\n bar.\n")
expected = <<-EOS
<dl>
<dt>foo</dt>
Expand All @@ -722,7 +722,7 @@ def test_dlist_with_bracket
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo[bar]\n foo.\n bar.\n")
actual = compile_block(" : foo[bar]\n foo.\n bar.\n")
expected = <<-EOS
<dl>
<dt>foo[bar]</dt>
Expand All @@ -733,7 +733,7 @@ def test_dlist_with_bracket
end

def test_dlist_with_comment
source = " : title\n body\n\#@ comment\n\#@ comment\n: title2\n body2\n"
source = " : title\n body\n\#@ comment\n\#@ comment\n : title2\n body2\n"
actual = compile_block(source)
expected = <<-EOS
<dl>
Expand Down
4 changes: 2 additions & 2 deletions test/test_latexbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def test_dlist
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo\n foo.\n bar.\n")
actual = compile_block(" : foo\n foo.\n bar.\n")
expected = <<-EOS
\\begin{description}
Expand All @@ -343,7 +343,7 @@ def test_dlist_with_bracket
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo[bar]\n foo.\n bar.\n")
actual = compile_block(" : foo[bar]\n foo.\n bar.\n")
expected = <<-EOS
\\begin{description}
Expand Down
4 changes: 2 additions & 2 deletions test/test_markdownbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_dlist
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo\n foo.\n bar.\n")
actual = compile_block(" : foo\n foo.\n bar.\n")
expected = <<-EOS
<dl>
<dt>foo</dt>
Expand All @@ -157,7 +157,7 @@ def test_dlist_with_bracket
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo[bar]\n foo.\n bar.\n")
actual = compile_block(" : foo[bar]\n foo.\n bar.\n")
expected = <<-EOS
<dl>
<dt>foo[bar]</dt>
Expand Down
2 changes: 1 addition & 1 deletion test/test_md2inaobuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_dlist
assert_equal expected, actual

@book.config['join_lines_by_lang'] = true
actual = compile_block(": foo\n foo.\n bar.\n")
actual = compile_block(" : foo\n foo.\n bar.\n")
expected = <<-EOS
<dl>
<dt>foo</dt>
Expand Down

0 comments on commit 921c901

Please sign in to comment.