openMSX
Functions | Variables
TclObject_test.cc File Reference
#include "catch.hpp"
#include "Interpreter.hh"
#include "TclObject.hh"
#include "ranges.hh"
#include "view.hh"
#include <cstdint>
#include <iterator>
#include <string>
Include dependency graph for TclObject_test.cc:

Go to the source code of this file.

Functions

 TEST_CASE ("TclObject, constructors")
 
 TEST_CASE ("TclObject, assignment")
 
 TEST_CASE ("TclObject, operator=")
 
 TEST_CASE ("TclObject, addListElement")
 
 TEST_CASE ("TclObject, addListElements")
 
t addDictKeyValue ("one", 1)
 
 CHECK (t.getDictValue(interp, "one").getInt(interp)==1)
 
 CHECK (t.getDictValue(interp, "two").getString()=="")
 
 CHECK (t.getDictValue(interp, "three").getString()=="")
 
t addDictKeyValues ("two", 2, "three", 3.14)
 
 CHECK (t.getDictValue(interp, "two").getInt(interp)==2)
 
 CHECK (t.getDictValue(interp, "three").getDouble(interp)==3.14)
 
t addDictKeyValues ("four", false, "one", "een")
 
 CHECK (t.getDictValue(interp, "one").getString()=="een")
 
 CHECK (t.getDictValue(interp, "four").getBoolean(interp)==false)
 
 TEST_CASE ("TclObject, getXXX")
 
 TEST_CASE ("TclObject, getDictValue")
 
 TEST_CASE ("TclObject, STL interface on Tcl list")
 
 TEST_CASE ("TclObject, evalBool")
 
 TEST_CASE ("TclObject, executeCommand")
 
 TEST_CASE ("TclObject, operator==, operator!=")
 

Variables

TclObject t
 

Function Documentation

◆ addDictKeyValue()

t addDictKeyValue ( "one"  ,
 
)

◆ addDictKeyValues() [1/2]

t addDictKeyValues ( "four"  ,
false  ,
"one"  ,
"een"   
)

◆ addDictKeyValues() [2/2]

t addDictKeyValues ( "two"  ,
,
"three"  ,
3.  14 
)

◆ CHECK() [1/7]

CHECK ( t.  getDictValueinterp, "four").getBoolean(interp = =false)

◆ CHECK() [2/7]

CHECK ( t.  getDictValueinterp, "one").getInt(interp = =1)

◆ CHECK() [3/7]

CHECK ( t.  getDictValueinterp, "one").getString( = ="een")

◆ CHECK() [4/7]

CHECK ( t.  getDictValueinterp, "three").getDouble(interp = =3.14)

◆ CHECK() [5/7]

CHECK ( t.  getDictValueinterp, "three").getString( = ="")

◆ CHECK() [6/7]

CHECK ( t.  getDictValueinterp, "two").getInt(interp = =2)

◆ CHECK() [7/7]

CHECK ( t.  getDictValueinterp, "two").getString( = ="")

◆ TEST_CASE() [1/11]

TEST_CASE ( TclObject,
addListElement"   
)

◆ TEST_CASE() [2/11]

TEST_CASE ( TclObject,
addListElements"   
)

◆ TEST_CASE() [3/11]

TEST_CASE ( TclObject,
assignment"   
)

Definition at line 88 of file TclObject_test.cc.

References CHECK(), and openmsx::TclObject::getString().

◆ TEST_CASE() [4/11]

TEST_CASE ( TclObject,
constructors"   
)

◆ TEST_CASE() [5/11]

TEST_CASE ( TclObject,
evalBool"   
)

Definition at line 375 of file TclObject_test.cc.

References CHECK().

◆ TEST_CASE() [6/11]

TEST_CASE ( TclObject,
executeCommand"   
)

◆ TEST_CASE() [7/11]

TEST_CASE ( TclObject,
getDictValue"   
)

Definition at line 323 of file TclObject_test.cc.

References CHECK(), openmsx::TclObject::getDictValue(), and t.

◆ TEST_CASE() [8/11]

TEST_CASE ( TclObject,
getXXX"   
)

◆ TEST_CASE() [9/11]

TEST_CASE ( TclObject)

◆ TEST_CASE() [10/11]

TEST_CASE ( TclObject,
operator  = = 
)

Definition at line 396 of file TclObject_test.cc.

References CHECK().

◆ TEST_CASE() [11/11]

TEST_CASE ( TclObject,
STL interface on Tcl list"   
)

Variable Documentation

◆ t

Initial value:

Definition at line 265 of file TclObject_test.cc.

Referenced by cstd::abs(), strCatImpl::absHelper(), openmsx::TclObject::addListElement(), openmsx::XmlOutputArchive::attribute(), openmsx::XmlInputArchive::attribute(), openmsx::ArchiveBase< Derived >::attribute(), openmsx::XmlInputArchive::attribute(), openmsx::XmlOutputArchive::attributeImpl(), openmsx::XmlInputArchive::attributeImpl(), openmsx::serialize_as_stl_collection< T >::begin(), bin_string(), strCatImpl::calcTotalSize(), strCatImpl::calcTotalSizeHelper(), strCatImpl::ConcatFixedWidthBinIntegral< N, T >::ConcatFixedWidthBinIntegral(), strCatImpl::ConcatFixedWidthHexIntegral< N, Case, T >::ConcatFixedWidthHexIntegral(), strCatImpl::ConcatIntegral< T >::ConcatIntegral(), strCatImpl::ConcatUnit< T >::ConcatUnit(), strCatImpl::ConcatVariableWidthHexIntegral< Case, T >::ConcatVariableWidthHexIntegral(), strCatImpl::ConcatVariableWidthHexIntegral< Case, T >::copy(), strCatImpl::ConcatFixedWidthHexIntegral< N, Case, T >::copy(), strCatImpl::ConcatFixedWidthBinIntegral< N, T >::copy(), strCatImpl::copyUnits(), strCatImpl::copyUnitsHelper(), cstd::cos_iter(), openmsx::RomFactory::create(), openmsx::VDPAccessSlots::CycleTable::CycleTable(), dec_string(), openmsx::DivModBySame::div(), openmsx::SettingsParser::doctype(), openmsx::XMLDocumentHandler::doctype(), openmsx::DBParser::doctype(), openmsx::InputArchiveBase< Derived >::doSerialize(), HexDump::encode(), openmsx::serialize_as_stl_collection< T >::end(), cstd::exp(), openmsx::fromString(), openmsx::get_event(), openmsx::DMKDiskImage::getNbSectorsImpl(), openmsx::serialize_as_pointer< std::shared_ptr< T > >::getPointer(), openmsx::serialize_as_pointer< std::unique_ptr< T > >::getPointer(), openmsx::serialize_as_pointer< T * >::getPointer(), openmsx::OSDImageBasedWidget::getPos(), openmsx::V9990::getPriorityControlX(), openmsx::V9990::getPriorityControlY(), openmsx::V9990::getRollMask(), openmsx::HD::getTigerTreeHash(), hex_string(), hex_string(), ImAlphaBlendColors(), ImBezierCubicCalc(), ImBezierQuadraticCalc(), openmsx::PolymorphicInitializerRegistry< Archive >::init(), inplace_buffer< T, BUF_SIZE >::inplace_buffer(), openmsx::SchedulerQueue< T >::insert(), openmsx::instructionLength(), view::keys(), openmsx::PersistentElement< C, gl::ivec2 >::load(), openmsx::PersistentElement< C, gl::vec2 >::load(), openmsx::PersistentElement< C, gl::vec4 >::load(), openmsx::XmlInputArchive::load(), openmsx::MemInputArchive::load(), openmsx::XmlInputArchive::load(), openmsx::loadEnum(), strCatImpl::makeConcatUnit(), strCatImpl::makeConcatUnit(), strCatImpl::makeConcatUnit(), strCatImpl::makeConcatUnit(), strCatImpl::makeConcatUnit(), strCatImpl::makeConcatUnit(), openmsx::MemoryOps::mallocAligned(), openmsx::MB89352::MB89352(), gl::norm2_2(), openmsx::ClassSaver< T >::operator()(), openmsx::PrimitiveSaver< T >::operator()(), openmsx::EnumSaver< T >::operator()(), openmsx::VariantSerializer< V >::Saver::operator()(), openmsx::ClassLoader< T >::operator()(), openmsx::PrimitiveLoader< T >::operator()(), openmsx::EnumLoader< T >::operator()(), openmsx::MapConstrArgsCopy< Base, Derived >::operator()(), openmsx::detail::GetArg< std::optional< T > >::operator()(), SDLDestroyTexture::operator()(), Endian::Ident::operator()(), Endian::ByteSwap::operator()(), uint128::operator*=(), gl::vecN< 2, T >::operator*=(), gl::vecN< 3, T >::operator*=(), gl::vecN< 4, T >::operator*=(), openmsx::TclObject::operator=(), openmsx::serialize_as_stl_collection< T >::output(), openmsx::ImGuiOsdIcons::paint(), openmsx::Sha1Sum::parse40(), openmsx::Paper::plot(), cb_queue< T >::pop_front(), openmsx::serialize_as_stl_collection< T >::prepare(), circular_buffer< T >::push_back(), circular_buffer< T >::push_front(), openmsx::PolymorphicInitializerRegistry< Archive >::registerClass(), openmsx::AY8910::reset(), openmsx::PolymorphicSaverRegistry< Archive >::save(), openmsx::PolymorphicSaverRegistry< Archive >::save(), openmsx::MemOutputArchive::save(), openmsx::XmlOutputArchive::save(), openmsx::saveEnum(), openmsx::XmlOutputArchive::saveImpl(), openmsx::VDP::scheduleCmdSync(), openmsx::serialize(), openmsx::MSXCommandEvent::serialize(), openmsx::MSXS1985::serialize(), openmsx::YMF278::serialize(), openmsx::MemOutputArchive::serialize(), openmsx::MemInputArchive::serialize(), openmsx::MemOutputArchive::serialize(), openmsx::XmlOutputArchive::serialize(), openmsx::InputArchiveBase< Derived >::serialize(), openmsx::MemInputArchive::serialize(), openmsx::XmlInputArchive::serialize(), openmsx::ArchiveBase< Derived >::serializeBase(), openmsx::ArchiveBase< Derived >::serializeInlinedBase(), openmsx::OutputArchiveBase< Derived >::serializeInlinedBase(), openmsx::OutputArchiveBase< Derived >::serializeOnlyOnce(), openmsx::InputArchiveBase< Derived >::serializeOnlyOnce(), openmsx::InputArchiveBase< Derived >::serializePointerID(), openmsx::InputArchiveBase< Derived >::serializeWithID(), openmsx::DivModBySame::setDivisor(), openmsx::serialize_as_pointer< std::shared_ptr< T > >::setPointer(), openmsx::serialize_as_pointer< std::unique_ptr< T > >::setPointer(), openmsx::serialize_as_pointer< T * >::setPointer(), cstd::sin_iter(), small_buffer< T, BUF_SIZE >::small_buffer(), openmsx::DBParser::stop(), strAppend(), strCat(), openmsx::TclObject::TclObject(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), test_zip(), test_zip(), test_zip_equal(), test_zip_equal(), tmpStrCat(), openmsx::TigerHash::toString(), openmsx::toString(), view::values(), openmsx::WD33C93::WD33C93(), openmsx::NinjaTap::write(), openmsx::DACSound16S::writeDAC(), openmsx::YMF262::YMF262(), and openmsx::AviWriter::~AviWriter().