mlpack
Macros | Functions
prefixedoutstream_test.cpp File Reference
#include <iostream>
#include <sstream>
#include <mlpack/core.hpp>
#include "catch.hpp"
Include dependency graph for prefixedoutstream_test.cpp:

Macros

#define BASH_RED   "\033[0;31m"
 
#define BASH_GREEN   "\033[0;32m"
 
#define BASH_YELLOW   "\033[0;33m"
 
#define BASH_CYAN   "\033[0;36m"
 
#define BASH_CLEAR   "\033[0m"
 

Functions

 TEST_CASE ("TestPrefixedOutStreamBasic", "[PrefixedOutStreamTest]")
 Test the output of IO using PrefixedOutStream. More...
 
 TEST_CASE ("TestArmadilloPrefixedOutStream", "[PrefixedOutStreamTest]")
 Test that we can correctly output Armadillo objects to PrefixedOutStream objects.
 
 TEST_CASE ("TestPrefixedOutStream", "[PrefixedOutStreamTest]")
 Test that we can correctly output things in general.
 
 TEST_CASE ("TestPrefixedOutStreamModifiers", "[PrefixedOutStreamTest]")
 Test format modifiers.
 
 TEST_CASE ("TestFormattedOutput", "[PrefixedOutStreamTest]")
 Test formatted floating-point output.
 
 TEST_CASE ("TestArmaCustomPrecision", "[PrefixedOutStreamTest]")
 Test custom precision output of arma objects.
 

Detailed Description

Author
Matthew Amidon, Ryan Curtin

Tests for the PrefixedOutStream class

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "TestPrefixedOutStreamBasic"  ,
""  [PrefixedOutStreamTest] 
)

Test the output of IO using PrefixedOutStream.

We will pass bogus input to a stringstream so that none of it gets to the screen.