From 5be94abdbb48cf0aeefe1e55048c90cd065c1486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 18 Aug 2022 01:53:01 +0200 Subject: Whatever. --- c/test.cpp | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/c/test.cpp b/c/test.cpp index 1054978..4de5578 100644 --- a/c/test.cpp +++ b/c/test.cpp @@ -195,6 +195,30 @@ TESTS } //DeleteFile(L"tmp.dat"); } + + TEST(DownloadData) + { + WcharPtr title, wiki, date, source, hint; + int i = 1053; + /* This is slow. */ + while(Pl("episode_data","fetch_episode_data",++i,&title,&wiki,&date,&source,&hint)) { + extern FileView g_fvElv; + extern FileView g_fvDlv; + + ElvDataA& e = g_fvElv.At(i-1); + Wcscpy(e.title, title); + if (!e.siEp[0]) + Swprintf(e.siEp, L"%d", i); + + DlvDataA& d = g_fvDlv.At(i-1); + Wcscpy(d.wiki, wiki); + Wcscpy(d.date, date); + Wcscpy(d.source, source); + Wcscpy(d.hint, hint); + } + extern CfgA& g_cfg; + g_cfg.cEp = i; + } }; int RunTests() @@ -207,7 +231,8 @@ int RunTests() //MigrateElvDataFromPrologToDisk{}, SampleConfigurationToDisk{}, //MigrateCfg{} - MigrateDlvDataFromPrologToDisk{}, + //MigrateDlvDataFromPrologToDisk{}, + //DownloadData{}, }; printf("Results (%llu tests):\n", sizeof(tests)/sizeof(*tests)); -- cgit v1.2.3