Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfgas_decimal_unittest.cpp File Reference

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

#include "xfa/fgas/crt/cfgas_decimal.h"
#include <math.h>
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
+ Include dependency graph for cfgas_decimal_unittest.cpp:

Go to the source code of this file.

Functions

 TEST (CFGAS_Decimal, Empty)
 
 TEST (CFGAS_Decimal, FromInt32)
 
 TEST (CFGAS_Decimal, FromUint32)
 
 TEST (CFGAS_Decimal, FromUint64)
 
 TEST (CFGAS_Decimal, FromFloat)
 
 TEST (CFGAS_Decimal, FromFloatFractional)
 
 TEST (CFGAS_Decimal, FromString)
 
 TEST (CFGAS_Decimal, FromString28Digits)
 

Function Documentation

◆ TEST() [1/8]

TEST ( CFGAS_Decimal ,
Empty  )

Definition at line 13 of file cfgas_decimal_unittest.cpp.

References CFGAS_Decimal::ToDouble(), CFGAS_Decimal::ToFloat(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [2/8]

TEST ( CFGAS_Decimal ,
FromFloat  )

Definition at line 41 of file cfgas_decimal_unittest.cpp.

References CFGAS_Decimal::CFGAS_Decimal(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [3/8]

TEST ( CFGAS_Decimal ,
FromFloatFractional  )

Definition at line 60 of file cfgas_decimal_unittest.cpp.

References CFGAS_Decimal::CFGAS_Decimal(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [4/8]

TEST ( CFGAS_Decimal ,
FromInt32  )

Definition at line 20 of file cfgas_decimal_unittest.cpp.

References CFGAS_Decimal::CFGAS_Decimal(), fxcrt::WideString::c_str(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [5/8]

TEST ( CFGAS_Decimal ,
FromString  )

Definition at line 69 of file cfgas_decimal_unittest.cpp.

References fxcrt::WideString::c_str(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [6/8]

TEST ( CFGAS_Decimal ,
FromString28Digits  )

Definition at line 76 of file cfgas_decimal_unittest.cpp.

References fxcrt::WideString::c_str(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [7/8]

TEST ( CFGAS_Decimal ,
FromUint32  )

Definition at line 27 of file cfgas_decimal_unittest.cpp.

References CFGAS_Decimal::CFGAS_Decimal(), fxcrt::WideString::c_str(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function:

◆ TEST() [8/8]

TEST ( CFGAS_Decimal ,
FromUint64  )

Definition at line 34 of file cfgas_decimal_unittest.cpp.

References CFGAS_Decimal::CFGAS_Decimal(), fxcrt::WideString::c_str(), and CFGAS_Decimal::ToWideString().

+ Here is the call graph for this function: