| 70 | } |
| 71 | |
| 72 | void TestBibTeXFile::entry_value() |
| 73 | { |
| 74 | BibTeXFile b("bibtex-1.bib"); |
| 75 | QCOMPARE(b.entry(0).value(QString::fromLatin1("author")), QString::fromLatin1("John Doe and Smith, Jane")); |
| 76 | QCOMPARE(b.entry(0).value(QString::fromLatin1("AUTHOR")), QString::fromLatin1("John Doe and Smith, Jane")); |
| 77 | QCOMPARE(b.entry(0).value(QString::fromLatin1("unknown-field")), QString()); |
| 78 | } |
| 79 | |
| 80 | void TestBibTeXFile::entry_title() |
| 81 | { |