blob: 24eaee1899655726ed335874f5a6379ad5565775 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/storage/storageutil/palette.h>
#include <vespa/vdstestlib/cppunit/macros.h>
namespace storage {
struct PaletteTest : public CppUnit::TestFixture {
void testNormalUsage();
CPPUNIT_TEST_SUITE(PaletteTest);
CPPUNIT_TEST(testNormalUsage);
CPPUNIT_TEST_SUITE_END();
};
CPPUNIT_TEST_SUITE_REGISTRATION(PaletteTest);
void
PaletteTest::testNormalUsage()
{
std::ofstream out("palette.html");
out << "<html><body>\n";
Palette palette(75);
palette.printHtmlTablePalette(out);
out << "</body></html>\n";
out.close();
}
} // storage
|