Commit bb5d2955 authored by User expired's avatar User expired
Browse files

Failing test for trailing commas in multi lines

parent 13c7cfd4
Pipeline #40142 failed with stage
in 1 minute and 20 seconds
......@@ -252,7 +252,7 @@ text over
three lines }' > $fileOne
bib-format $fileOne
assertEquals ' Field = {some text over three lines}' "$(cat $fileOne)"
# Within a record
# Within a record context
echo '@Article{,
Field = {some
text}
......@@ -260,6 +260,43 @@ text}
bib-format $fileOne
assertEquals '@Article{,
Field = {some text}
}' "$(cat $fileOne)"
# Context with adjacent entries
echo '@Article{,
Title = {Article title},
Field = {some
text},
Number = {6454}
}' > $fileOne
bib-format $fileOne
assertEquals '@Article{,
Title = {Article title},
Field = {some text},
Number = {6454}
}' "$(cat $fileOne)"
# Several lines with trailing commas
echo '@Article{,
Title = {Article title},
Author = {Name,
First and Another,
Second}
}' > $fileOne
bib-format $fileOne
assertEquals '@Article{,
Title = {Article title},
Author = {Name, First and Another, Second}
}' "$(cat $fileOne)"
# Trailing commas and adjacent entry
echo '@Article{,
Title = {Article title},
Author = {Name,
First and Another,
Second}
}' > $fileOne
bib-format $fileOne
assertEquals '@Article{,
Title = {Article title},
Author = {Name, First and Another, Second}
}' "$(cat $fileOne)"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment