GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
compiled_tests.cpp File Reference
Include dependency graph for compiled_tests.cpp:

Classes

class  Short_Comparison_Test
class  Type_Name_MyClass
class  Utility_Test
class  Object_Copy_Count_Test
class  Object_Lifetime_Test
struct  Object_Lifetime_Vector2< T >
class  Non_Poly_Base
class  Non_Poly_Derived
struct  TestCppVariableScope
struct  Returned_Converted_Config
struct  Count_Tracer
class  Unique_Ptr_Test_Class
class  Unique_Ptr_Test_Base_Class
class  Unique_Ptr_Test_Derived_Class
struct  A
class  B
struct  Reference_MyClass
struct  MyException

Macros

#define CATCH_CONFIG_MAIN

Enumerations

enum  Utility_Test_Numbers { ONE , TWO , THREE }

Functions

 TEST_CASE ("C++11 Lambdas Can Be Registered")
 TEST_CASE ("Dynamic_Object attributes can be shared with C++")
 TEST_CASE ("Function objects can be created from chaiscript functions")
 TEST_CASE ("ChaiScript can be created and destroyed on heap")
void arithmetic_conversions_f1 (int)
void arithmetic_conversions_f4 (std::string)
void arithmetic_conversions_f2 (int)
void arithmetic_conversions_f3 (double)
void arithmetic_conversions_f_func_return (const std::function< unsigned int(unsigned long)> &f)
 TEST_CASE ("Test automatic arithmetic conversions")
 TEST_CASE ("Generic exception handling with C++")
 TEST_CASE ("Throw an int")
 TEST_CASE ("Throw int or double")
 TEST_CASE ("Throw a runtime_error")
 TEST_CASE ("Throw unhandled type")
int expected_eval_errors_test_one (const int &)
 TEST_CASE ("No unexpected exceptions leak")
int function_ordering_test_one (const int &)
int function_ordering_test_two (int &)
 TEST_CASE ("Function ordering")
int functor_cast_test_call (const std::function< int(int)> &f, int val)
 TEST_CASE ("Functor cast")
 TEST_CASE ("Non-ASCII characters in the middle of string")
 TEST_CASE ("Non-ASCII characters in the beginning of string")
 TEST_CASE ("Non-ASCII characters in the end of string")
 TEST_CASE ("BOM in string")
int set_state_test_myfun ()
 TEST_CASE ("Set and restore chai state")
 TEST_CASE ("Short comparison with int")
 TEST_CASE ("Test lookup of type names")
int simultaneous_chaiscript_do_something (int i)
int simultaneous_chaiscript_do_something_else (int i)
 TEST_CASE ("Simultaneous ChaiScript tests")
 TEST_CASE ("Utility_Test utility class wrapper")
void do_something_with_enum_vector (const std::vector< Utility_Test_Numbers > &v)
 TEST_CASE ("Utility_Test utility class wrapper for enum")
Object_Copy_Count_Test object_copy_count_create ()
 TEST_CASE ("Object copy counts")
 TEST_CASE ("Object lifetime tests")
Object_Lifetime_Vector2< float > Object_Lifetime_Vector2_GetValue ()
 TEST_CASE ("Object lifetime test 2")
int myfunction (Non_Poly_Base *)
 TEST_CASE ("Test Derived->Base with non-polymorphic classes")
 TEST_CASE ("Variable Scope When Calling From C++")
 TEST_CASE ("Variable Scope When Calling From C++ 2")
void ulonglong (unsigned long long i)
void longlong (long long i)
 TEST_CASE ("Test long long dispatch")
 TEST_CASE ("Return of converted type from script")
int get_value_a (const std::map< std::string, int > &t_m)
 TEST_CASE ("Map conversions")
 TEST_CASE ("Parse floats with non-posix locale")
bool FindBitmap (int &ox, int &oy, long)
 TEST_CASE ("Mismatched numeric types only convert necessary params")
 TEST_CASE ("type_conversion to bool")
 TEST_CASE ("Make sure ChaiScript object still compiles / executes")
 TEST_CASE ("Test count tracer")
 TEST_CASE ("Test stdlib options")
void uservalueref (int &&)
void usemoveonlytype (std::unique_ptr< int > &&)
 TEST_CASE ("Pass r-value reference to func")
 TEST_CASE ("Use unique_ptr")
std::unique_ptr< Unique_Ptr_Test_Class > make_Unique_Ptr_Test_Class ()
 TEST_CASE ("Call methods through unique_ptr")
std::unique_ptr< Unique_Ptr_Test_Derived_Class > make_Unique_Ptr_Test_Derived_Class ()
 TEST_CASE ("Call methods on base class through unique_ptr<derived>")
 TEST_CASE ("Test typed chaiscript functions to perform conversions")
 TEST_CASE ("Test reference member being registered")
 TEST_CASE ("Test unicode matches C++")
const int add_3 (const int &i)
 TEST_CASE ("Test returning by const non-reference")
void throws_a_thing ()
 TEST_CASE ("Test throwing and catching custom exception")
 TEST_CASE ("Test ability to get 'use' function from default construction")

Macro Definition Documentation

◆ CATCH_CONFIG_MAIN

#define CATCH_CONFIG_MAIN

Enumeration Type Documentation

◆ Utility_Test_Numbers

Enumerator
ONE 
TWO 
THREE 

Function Documentation

◆ add_3()

const int add_3 ( const int & i)

◆ arithmetic_conversions_f1()

void arithmetic_conversions_f1 ( int )
Here is the caller graph for this function:

◆ arithmetic_conversions_f2()

void arithmetic_conversions_f2 ( int )
Here is the caller graph for this function:

◆ arithmetic_conversions_f3()

void arithmetic_conversions_f3 ( double )
Here is the caller graph for this function:

◆ arithmetic_conversions_f4()

void arithmetic_conversions_f4 ( std::string )
Here is the caller graph for this function:

◆ arithmetic_conversions_f_func_return()

void arithmetic_conversions_f_func_return ( const std::function< unsigned int(unsigned long)> & f)
Here is the caller graph for this function:

◆ do_something_with_enum_vector()

void do_something_with_enum_vector ( const std::vector< Utility_Test_Numbers > & v)
Here is the caller graph for this function:

◆ expected_eval_errors_test_one()

int expected_eval_errors_test_one ( const int & )
Here is the caller graph for this function:

◆ FindBitmap()

bool FindBitmap ( int & ox,
int & oy,
long  )
Here is the caller graph for this function:

◆ function_ordering_test_one()

int function_ordering_test_one ( const int & )
Here is the caller graph for this function:

◆ function_ordering_test_two()

int function_ordering_test_two ( int & )
Here is the caller graph for this function:

◆ functor_cast_test_call()

int functor_cast_test_call ( const std::function< int(int)> & f,
int val )
Here is the caller graph for this function:

◆ get_value_a()

int get_value_a ( const std::map< std::string, int > & t_m)
Here is the caller graph for this function:

◆ longlong()

void longlong ( long long i)

◆ make_Unique_Ptr_Test_Class()

std::unique_ptr< Unique_Ptr_Test_Class > make_Unique_Ptr_Test_Class ( )

◆ make_Unique_Ptr_Test_Derived_Class()

std::unique_ptr< Unique_Ptr_Test_Derived_Class > make_Unique_Ptr_Test_Derived_Class ( )

◆ myfunction()

int myfunction ( Non_Poly_Base * )
Here is the caller graph for this function:

◆ object_copy_count_create()

Object_Copy_Count_Test object_copy_count_create ( )
Here is the caller graph for this function:

◆ Object_Lifetime_Vector2_GetValue()

Object_Lifetime_Vector2< float > Object_Lifetime_Vector2_GetValue ( )
Here is the caller graph for this function:

◆ set_state_test_myfun()

int set_state_test_myfun ( )
Here is the caller graph for this function:

◆ simultaneous_chaiscript_do_something()

int simultaneous_chaiscript_do_something ( int i)
Here is the caller graph for this function:

◆ simultaneous_chaiscript_do_something_else()

int simultaneous_chaiscript_do_something_else ( int i)
Here is the caller graph for this function:

◆ TEST_CASE() [1/48]

TEST_CASE ( "BOM in string" )

◆ TEST_CASE() [2/48]

TEST_CASE ( "C++11 Lambdas Can Be Registered" )

◆ TEST_CASE() [3/48]

TEST_CASE ( "Call methods on base class through unique_ptr<derived>" )

◆ TEST_CASE() [4/48]

TEST_CASE ( "Call methods through unique_ptr" )

◆ TEST_CASE() [5/48]

TEST_CASE ( "ChaiScript can be created and destroyed on heap" )

◆ TEST_CASE() [6/48]

TEST_CASE ( "Dynamic_Object attributes can be shared with C++" )

◆ TEST_CASE() [7/48]

TEST_CASE ( "Function objects can be created from chaiscript functions" )

◆ TEST_CASE() [8/48]

TEST_CASE ( "Function ordering" )

◆ TEST_CASE() [9/48]

TEST_CASE ( "Functor cast" )

◆ TEST_CASE() [10/48]

TEST_CASE ( "Generic exception handling with C++" )

◆ TEST_CASE() [11/48]

TEST_CASE ( "Make sure ChaiScript object still compiles / executes" )

◆ TEST_CASE() [12/48]

TEST_CASE ( "Map conversions" )

◆ TEST_CASE() [13/48]

TEST_CASE ( "Mismatched numeric types only convert necessary params" )

◆ TEST_CASE() [14/48]

TEST_CASE ( "No unexpected exceptions leak" )

◆ TEST_CASE() [15/48]

TEST_CASE ( "Non-ASCII characters in the beginning of string" )

◆ TEST_CASE() [16/48]

TEST_CASE ( "Non-ASCII characters in the end of string" )

◆ TEST_CASE() [17/48]

TEST_CASE ( "Non-ASCII characters in the middle of string" )

◆ TEST_CASE() [18/48]

TEST_CASE ( "Object copy counts" )

◆ TEST_CASE() [19/48]

TEST_CASE ( "Object lifetime test 2" )

◆ TEST_CASE() [20/48]

TEST_CASE ( "Object lifetime tests" )

◆ TEST_CASE() [21/48]

TEST_CASE ( "Parse floats with non-posix locale" )

◆ TEST_CASE() [22/48]

TEST_CASE ( "Pass r-value reference to func" )

◆ TEST_CASE() [23/48]

TEST_CASE ( "Return of converted type from script" )

◆ TEST_CASE() [24/48]

TEST_CASE ( "Set and restore chai state" )

◆ TEST_CASE() [25/48]

TEST_CASE ( "Short comparison with int" )

◆ TEST_CASE() [26/48]

TEST_CASE ( "Simultaneous ChaiScript tests" )

◆ TEST_CASE() [27/48]

TEST_CASE ( "Test ability to get 'use' function from default construction" )

◆ TEST_CASE() [28/48]

TEST_CASE ( "Test automatic arithmetic conversions" )

◆ TEST_CASE() [29/48]

TEST_CASE ( "Test count tracer" )

◆ TEST_CASE() [30/48]

TEST_CASE ( "Test Derived->Base with non-polymorphic classes" )

◆ TEST_CASE() [31/48]

TEST_CASE ( "Test long long dispatch" )

◆ TEST_CASE() [32/48]

TEST_CASE ( "Test lookup of type names" )

◆ TEST_CASE() [33/48]

TEST_CASE ( "Test reference member being registered" )

◆ TEST_CASE() [34/48]

TEST_CASE ( "Test returning by const non-reference" )

◆ TEST_CASE() [35/48]

TEST_CASE ( "Test stdlib options" )

◆ TEST_CASE() [36/48]

TEST_CASE ( "Test throwing and catching custom exception" )

◆ TEST_CASE() [37/48]

TEST_CASE ( "Test typed chaiscript functions to perform conversions" )

◆ TEST_CASE() [38/48]

TEST_CASE ( "Test unicode matches C++" )

◆ TEST_CASE() [39/48]

TEST_CASE ( "Throw a runtime_error" )

◆ TEST_CASE() [40/48]

TEST_CASE ( "Throw an int" )

◆ TEST_CASE() [41/48]

TEST_CASE ( "Throw int or double" )

◆ TEST_CASE() [42/48]

TEST_CASE ( "Throw unhandled type" )

◆ TEST_CASE() [43/48]

TEST_CASE ( "type_conversion to bool" )

◆ TEST_CASE() [44/48]

TEST_CASE ( "Use unique_ptr" )

◆ TEST_CASE() [45/48]

TEST_CASE ( "Utility_Test utility class wrapper for enum" )

◆ TEST_CASE() [46/48]

TEST_CASE ( "Utility_Test utility class wrapper" )
Todo
fix overload resolution for fun<>

◆ TEST_CASE() [47/48]

TEST_CASE ( "Variable Scope When Calling From C++ 2" )

◆ TEST_CASE() [48/48]

TEST_CASE ( "Variable Scope When Calling From C++" )

◆ throws_a_thing()

void throws_a_thing ( )

◆ ulonglong()

void ulonglong ( unsigned long long i)

◆ usemoveonlytype()

void usemoveonlytype ( std::unique_ptr< int > && )

◆ uservalueref()

void uservalueref ( int && )