openMSX
|
#include "catch.hpp"
#include "Interpreter.hh"
#include "TclObject.hh"
#include "ranges.hh"
#include "view.hh"
#include <cstdint>
#include <iterator>
#include <string>
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 |
t addDictKeyValue | ( | "one" | , |
1 | |||
) |
t addDictKeyValues | ( | "four" | , |
false | , | ||
"one" | , | ||
"een" | |||
) |
t addDictKeyValues | ( | "two" | , |
2 | , | ||
"three" | , | ||
3. | 14 | ||
) |
CHECK | ( | t. | getDictValueinterp, "four").getBoolean(interp = =false | ) |
CHECK | ( | t. | getDictValueinterp, "one").getInt(interp = =1 | ) |
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
CHECK | ( | t. | getDictValueinterp, "one").getString( = ="een" | ) |
CHECK | ( | t. | getDictValueinterp, "three").getDouble(interp = =3.14 | ) |
CHECK | ( | t. | getDictValueinterp, "three").getString( = ="" | ) |
CHECK | ( | t. | getDictValueinterp, "two").getInt(interp = =2 | ) |
CHECK | ( | t. | getDictValueinterp, "two").getString( = ="" | ) |
TEST_CASE | ( | " | TclObject, |
addListElement" | |||
) |
Definition at line 179 of file TclObject_test.cc.
References openmsx::TclObject::addListElement(), CHECK(), openmsx::TclObject::getListIndex(), openmsx::TclObject::getListLength(), openmsx::TclObject::getString(), l3, l4, and t.
TEST_CASE | ( | " | TclObject, |
addListElements" | |||
) |
Definition at line 227 of file TclObject_test.cc.
References openmsx::TclObject::addListElement(), openmsx::TclObject::addListElements(), CHECK(), openmsx::TclObject::getListIndex(), openmsx::TclObject::getListLength(), openmsx::TclObject::getString(), t, and view::transform().
TEST_CASE | ( | " | TclObject, |
assignment" | |||
) |
Definition at line 88 of file TclObject_test.cc.
References CHECK(), and openmsx::TclObject::getString().
TEST_CASE | ( | " | TclObject, |
constructors" | |||
) |
Definition at line 12 of file TclObject_test.cc.
References CHECK(), openmsx::TclObject::getBoolean(), openmsx::TclObject::getDictValue(), openmsx::TclObject::getDouble(), openmsx::TclObject::getInt(), openmsx::TclObject::getListIndex(), openmsx::TclObject::getListLength(), openmsx::TclObject::getString(), openmsx::makeTclDict(), openmsx::makeTclList(), and t.
TEST_CASE | ( | " | TclObject, |
evalBool" | |||
) |
Definition at line 375 of file TclObject_test.cc.
References CHECK().
TEST_CASE | ( | " | TclObject, |
executeCommand" | |||
) |
Definition at line 383 of file TclObject_test.cc.
References CHECK(), openmsx::TclObject::executeCommand(), and openmsx::TclObject::getString().
TEST_CASE | ( | " | TclObject, |
getDictValue" | |||
) |
Definition at line 323 of file TclObject_test.cc.
References CHECK(), openmsx::TclObject::getDictValue(), and t.
TEST_CASE | ( | " | TclObject, |
getXXX" | |||
) |
Definition at line 286 of file TclObject_test.cc.
References CHECK(), openmsx::TclObject::getBoolean(), openmsx::TclObject::getDouble(), openmsx::TclObject::getInt(), and openmsx::TclObject::getString().
TEST_CASE | ( | " | TclObject | ) |
Definition at line 119 of file TclObject_test.cc.
References CHECK(), ranges::equal(), openmsx::TclObject::getBinary(), openmsx::TclObject::getString(), and t.
TEST_CASE | ( | " | TclObject, |
operator | = = |
||
) |
Definition at line 396 of file TclObject_test.cc.
References CHECK().
TEST_CASE | ( | " | TclObject, |
STL interface on Tcl list" | |||
) |
Definition at line 341 of file TclObject_test.cc.
References openmsx::TclObject::begin(), CHECK(), openmsx::TclObject::empty(), openmsx::TclObject::end(), openmsx::TclObject::size(), and t.
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::DBParser::doctype(), openmsx::XMLDocumentHandler::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().