mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
18 lines
387 B
C++
18 lines
387 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_COUT|LOG_FILE);
|
|
|
|
const Index<String>& h = GetMIMETypes();
|
|
for(int i = 0; i < h.GetCount(); i++) {
|
|
String ext = MIMEToFileExt(h[i]);
|
|
String m2 = FileExtToMIME(ext);
|
|
LOG(h[i] << " -> " << ext << ", " << ext << " -> " << m2);
|
|
ASSERT(h[i] == m2);
|
|
}
|
|
|
|
LOG("============== OK");
|
|
}
|