ProteoWizard
Functions | Variables
ClickwrapPrompterTest.cpp File Reference
#include "unit.hpp"
#include "ClickwrapPrompter.hpp"
#include "Std.hpp"

Go to the source code of this file.

Functions

void test ()
int main (int argc, char *argv[])

Variables

ostream * os_ = 0

Function Documentation

void test ( )

Definition at line 34 of file ClickwrapPrompterTest.cpp.

References pwiz::util::ClickwrapPrompter::prompt(), and unit_assert.

{
unit_assert(ClickwrapPrompter::prompt("Test", "This is a test of the emergency prompting system.", "test"));
}
int main ( int  argc,
char *  argv[] 
)

Definition at line 40 of file ClickwrapPrompterTest.cpp.

References e(), os_, test(), TEST_EPILOG, TEST_FAILED, and TEST_PROLOG.

{
TEST_PROLOG(argc, argv)
try
{
if (argc>1 && !strcmp(argv[1],"-v")) os_ = &cout;
if (os_) *os_ << "ClickwrapPrompterTest\n";
test();
}
catch (exception& e)
{
TEST_FAILED(e.what())
}
catch (...)
{
TEST_FAILED("Caught unknown exception.")
}
}

Variable Documentation

ostream* os_ = 0

Definition at line 31 of file ClickwrapPrompterTest.cpp.