SilverPlatterImporterTest#510
Conversation
|
Seems to be some line ending issues here as well. |
44250f4 to
2ecedcc
Compare
|
Please do the usual This should also solve the failing build. |
11ce039 to
65e35bb
Compare
|
Coverage 90,74%. Please try to increase it. |
65e35bb to
c35a2e6
Compare
|
Coverage is now 96,22%. The missed lines are mostly for incomplete entries (pages and title in chapters). Think, it's OK to miss them. |
There was a problem hiding this comment.
The if statement is not necessary.
00bbd96 to
275b143
Compare
506515f to
81ded75
Compare
| author = {Supek-S and Aine-CJ}, | ||
| title = {Simulation studies of multiple dipole neuromagnetic source localization, model order and limits of source resolution. }, | ||
| year = {1993}, | ||
| volume = {40(6) }, |
There was a problem hiding this comment.
Volume should be just 40(6) without the space (i.e add trim() in importer)
There was a problem hiding this comment.
Ideally 40(6) should be split to volume={40} and issue={6}.
71a4660 to
f82a6e6
Compare
|
What is the status here? |
|
I'm waiting for feedback, wether the test is ok now. |
| Assert.assertEquals("many-much-more-i don't know", entries.get(0).getField("keywords")); | ||
| Assert.assertEquals("Gymnasium Unterrieden", entries.get(0).getField("school")); | ||
| Assert.assertEquals("Supek-S and Aine-CJ", entries.get(0).getField("editor")); | ||
| Assert.assertEquals("IEEE Trans Biomed Eng", entries.get(0).getField("journal")); |
There was a problem hiding this comment.
Better use the BibTexAssert.assertEquals(Collections.singletonList(shouldBeEntry), entries). See the other PRs
|
LGTM 👍 just some very small comments |
f82a6e6 to
333a9a1
Compare
|
I've added the comments. |
| keywords = {many-much-more-i don't know}, | ||
| school = {Gymnasium Unterrieden}, | ||
| editor = {Supek-S and Aine-CJ}, | ||
| title = {imulation studies of multiple dipole neuromagnetic "\}, |
There was a problem hiding this comment.
why is the rest of the title deleted in comparison to the txt file?
There was a problem hiding this comment.
The title will only be saved till an " in comes. The code herefore is
int inPos = title.indexOf("\" in "); if (inPos > 1) { h.put("title", title.substring(1, inPos)); }
in the SilverplatterImporter.
If there isn't " in in the title then the whole title is saved.
|
The corresponding line is |
|
No it doesn't works. It says, that no entries were found. |
|
I found the problem. Now the import of the bib file works. I also changed the test to a parameterized test. |
| @Test | ||
| public final void testIsRecognizedFormat() throws Exception { | ||
| try (InputStream stream = SilverPlatterImporterTest.class | ||
| .getResourceAsStream(txtName)) { |
|
Except my very minor comments 👍 LGTM |
6b2bc3e to
5cd10ee
Compare
|
I adressed the comments and squashed all commits into one commit. |
|
🏆 |
No description provided.