Classes | Namespaces | Macros | Functions
FormattedDouble_T.cpp File Reference
#include "TestUtil.hpp"
#include "FormattedDouble.hpp"
Include dependency graph for FormattedDouble_T.cpp:

Go to the source code of this file.

Classes

class  FormattedDouble_T
 

Namespaces

 std
 

Macros

#define STRMASSERT(EXP, FD, VAL)
 

Functions

int main ()
 
std::ostream & std::operator<< (std::ostream &s, gnsstk::StringUtils::FFAlign v)
 
std::ostream & std::operator<< (std::ostream &s, gnsstk::StringUtils::FFLead v)
 
std::ostream & std::operator<< (std::ostream &s, gnsstk::StringUtils::FFSign v)
 

Macro Definition Documentation

◆ STRMASSERT

#define STRMASSERT (   EXP,
  FD,
  VAL 
)
Value:
{ \
std::ostringstream oss; \
oss << FD; \
std::string formatted = oss.str(); \
TUCSM("operator<<"); \
TUASSERTE(std::string, EXP, formatted); \
std::istringstream iss(formatted); \
gnsstk::FormattedDouble fdin(FD.totalLen, FD.exponentChar); \
iss >> fdin; \
TUCSM("operator>>"); \
TUASSERTFE(VAL, fdin.val); \
gnsstk::FormattedDouble fdin2(FD); \
fdin2 = formatted; \
TUCSM("operator=(string)"); \
TUASSERTFE(VAL, fdin2.val); \
}

Definition at line 66 of file FormattedDouble_T.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 293 of file FormattedDouble_T.cpp.



gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42