MCPcopy Create free account
hub / github.com/TeXworks/texworks / entry_value

Method entry_value

unit-tests/BibTeXFile_test.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void 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
80void TestBibTeXFile::entry_title()
81{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected