[office/tellico] src/tests: Update tests with correct isbn formatting
Robby Stephenson <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 6ffda119a2656dc29743afd48ef6ad6424d2aa6b by Robby Stephenson.
Committed on 09/08/2026 at 02:06.
Pushed by rstephenson into branch 'master'.
Update tests with correct isbn formatting
M +1 -1 src/tests/datacrowtest.cpp
M +1 -1 src/tests/gcstartest.cpp
M +1 -1 src/tests/marctest.cpp
https://invent.kde.org/office/tellico/-/commit/6ffda119a2656dc29743afd48ef6ad6424d2aa6b
diff --git a/src/tests/datacrowtest.cpp b/src/tests/datacrowtest.cpp
index 452bacbb8..46dc903a5 100644
--- a/src/tests/datacrowtest.cpp
+++ b/src/tests/datacrowtest.cpp
@@ -103,7 +103,7 @@ void DataCrowTest::testBooks5() {
QCOMPARE(entry->field("edition"), QStringLiteral("First Edition"));
QCOMPARE(entry->field("author"), QStringLiteral("Eric Flint"));
QCOMPARE(entry->field("pages"), QStringLiteral("597"));
- QCOMPARE(entry->field("isbn"), QStringLiteral("1-41653-281-1"));
+ QCOMPARE(entry->field("isbn"), QStringLiteral("1-4165-3281-1"));
QCOMPARE(entry->field("binding"), QStringLiteral("Paperback"));
QCOMPARE(entry->field("publisher"), QStringLiteral("Baen Books"));
QCOMPARE(entry->field("series"), QStringLiteral("Ring of Fire"));
diff --git a/src/tests/gcstartest.cpp b/src/tests/gcstartest.cpp
index dd400296c..4ad931379 100644
--- a/src/tests/gcstartest.cpp
+++ b/src/tests/gcstartest.cpp
@@ -134,7 +134,7 @@ void GCstarTest::testComicBook() {
const auto writers = Tellico::FieldFormat::splitValue(entry->field(QStringLiteral("writer")));
QCOMPARE(writers.count(), 2);
QCOMPARE(writers.first(), QStringLiteral("writer1"));
- QCOMPARE(entry->field("isbn"), QStringLiteral("1-23456-789-X"));
+ QCOMPARE(entry->field("isbn"), QStringLiteral("1-234-56789-X"));
QCOMPARE(entry->field("artist"), QStringLiteral("illustrator"));
QCOMPARE(entry->field("publisher"), QStringLiteral("publisher"));
QCOMPARE(entry->field("colorist"), QStringLiteral("colourist"));
diff --git a/src/tests/marctest.cpp b/src/tests/marctest.cpp
index 02d81db2e..88246e657 100644
--- a/src/tests/marctest.cpp
+++ b/src/tests/marctest.cpp
@@ -70,7 +70,7 @@ void MarcTest::testMarc() {
QCOMPARE(entry->field("title"), QString::fromUtf8("Det osynliga barnet och andra berättelser"));
QCOMPARE(entry->field("author"), QStringLiteral("Jansson, Tove"));
QCOMPARE(entry->field("pub_year"), QStringLiteral("1998"));
- QCOMPARE(entry->field("isbn"), QStringLiteral("951-500880-8"));
+ QCOMPARE(entry->field("isbn"), QStringLiteral("951-50-0880-8"));
}
void MarcTest::testWidget() {