|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Test Al Vector. More...
#include <gtest/gtest.h>#include <al-vector.H>#include <al-domain.H>#include <ah-errors.H>#include <cmath>Go to the source code of this file.
Classes | |
| class | VectorTest |
Functions | |
| TEST_F (VectorTest, DefaultConstructor) | |
| TEST_F (VectorTest, ConstructorWithCustomEpsilon) | |
| TEST_F (VectorTest, ConstructorFromDynList) | |
| TEST_F (VectorTest, ConstructorFromDynListSizeMismatch) | |
| TEST_F (VectorTest, CopyConstructor) | |
| TEST_F (VectorTest, MoveConstructor) | |
| TEST_F (VectorTest, CopyAssignment) | |
| TEST_F (VectorTest, CopyAssignmentSelfAssignment) | |
| TEST_F (VectorTest, MoveAssignment) | |
| TEST_F (VectorTest, SetAndGetEntry) | |
| TEST_F (VectorTest, SetEntryToZeroRemovesIt) | |
| TEST_F (VectorTest, SetEntriesWithInitializerLists) | |
| TEST_F (VectorTest, SetEntriesSizeMismatch) | |
| TEST_F (VectorTest, SearchEntry) | |
| TEST_F (VectorTest, GetEntryConst) | |
| TEST_F (VectorTest, EpsilonDefaultValue) | |
| TEST_F (VectorTest, SetEpsilon) | |
| TEST_F (VectorTest, EpsilonAffectsZeroComparison) | |
| TEST_F (VectorTest, AreEqual) | |
| TEST_F (VectorTest, VectorAddition) | |
| TEST_F (VectorTest, VectorAdditionInPlace) | |
| TEST_F (VectorTest, VectorSubtraction) | |
| TEST_F (VectorTest, VectorSubtractionInPlace) | |
| TEST_F (VectorTest, ScalarMultiplication) | |
| TEST_F (VectorTest, ScalarMultiplicationFromLeft) | |
| TEST_F (VectorTest, ScalarMultiplicationByZero) | |
| TEST_F (VectorTest, ScalarMultiplicationByOne) | |
| TEST_F (VectorTest, ScalarDivision) | |
| TEST_F (VectorTest, ScalarDivisionByZero) | |
| TEST_F (VectorTest, ScalarDivisionByOne) | |
| TEST_F (VectorTest, UnaryMinus) | |
| TEST_F (VectorTest, ScalarProduct) | |
| TEST_F (VectorTest, ScalarProductOperator) | |
| TEST_F (VectorTest, ScalarProductOrthogonalVectors) | |
| TEST_F (VectorTest, ScalarProductWithZeroVector) | |
| TEST_F (VectorTest, EqualityOperator) | |
| TEST_F (VectorTest, EqualityWithEpsilon) | |
| TEST_F (VectorTest, InequalityOperator) | |
| TEST_F (VectorTest, EqualityZeroVectors) | |
| TEST_F (VectorTest, ProxyReadAccess) | |
| TEST_F (VectorTest, ProxyWriteAccess) | |
| TEST_F (VectorTest, ProxyWriteZero) | |
| TEST_F (VectorTest, ProxyParenthesesOperator) | |
| TEST_F (VectorTest, ProxyAssignmentBetweenEntries) | |
| TEST_F (VectorTest, IteratorBasic) | |
| TEST_F (VectorTest, ToList) | |
| TEST_F (VectorTest, ToStr) | |
| TEST_F (VectorTest, StringDomain) | |
| TEST_F (VectorTest, StringDomainArithmetic) | |
| TEST_F (VectorTest, VerySmallEpsilon) | |
| TEST_F (VectorTest, NegativeValues) | |
| TEST_F (VectorTest, LargeValues) | |
| TEST_F (VectorTest, MixedOperations) | |
| TEST_F (VectorTest, ChainedOperations) | |
| TEST_F (VectorTest, MapAndFilter) | |
| TEST_F (VectorTest, GetDomain) | |
| TEST (VectorFloatTest, FloatType) | |
| TEST (VectorFloatTest, FloatArithmetic) | |
| TEST_F (VectorTest, ComprehensiveIntegrationTest) | |
| int | main (int argc, char **argv) |
Tests for Test Al Vector.
Comprehensive Google Test suite for al-vector.H.
This test suite covers all major functionality of the Vector class including:
Definition in file test_al_vector.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 855 of file test_al_vector.cc.
References Aleph::maps().
| TEST | ( | VectorFloatTest | , |
| FloatArithmetic | |||
| ) |
Definition at line 791 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST | ( | VectorFloatTest | , |
| FloatType | |||
| ) |
Definition at line 777 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| AreEqual | |||
| ) |
Definition at line 282 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::are_equal(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| ChainedOperations | |||
| ) |
Definition at line 725 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ComprehensiveIntegrationTest | |||
| ) |
Definition at line 811 of file test_al_vector.cc.
References Aleph::copy(), Aleph::maps(), Aleph::Vector< T, NumType >::set_entries(), and Aleph::sum().
| TEST_F | ( | VectorTest | , |
| ConstructorFromDynList | |||
| ) |
Definition at line 109 of file test_al_vector.cc.
References Aleph::DynList< T >::append(), Aleph::Vector< T, NumType >::get_entry(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| ConstructorFromDynListSizeMismatch | |||
| ) |
Definition at line 124 of file test_al_vector.cc.
References Aleph::DynList< T >::append(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| ConstructorWithCustomEpsilon | |||
| ) |
Definition at line 103 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_epsilon(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| CopyAssignment | |||
| ) |
Definition at line 156 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| CopyAssignmentSelfAssignment | |||
| ) |
Definition at line 166 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| CopyConstructor | |||
| ) |
Definition at line 133 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| DefaultConstructor | |||
| ) |
Definition at line 94 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| EpsilonAffectsZeroComparison | |||
| ) |
Definition at line 272 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| EpsilonDefaultValue | |||
| ) |
Definition at line 260 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_epsilon(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| EqualityOperator | |||
| ) |
Definition at line 508 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| EqualityWithEpsilon | |||
| ) |
Definition at line 520 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| EqualityZeroVectors | |||
| ) |
Definition at line 540 of file test_al_vector.cc.
References Aleph::maps().
| TEST_F | ( | VectorTest | , |
| GetDomain | |||
| ) |
Definition at line 766 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_domain(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| GetEntryConst | |||
| ) |
Definition at line 247 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| InequalityOperator | |||
| ) |
Definition at line 530 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| IteratorBasic | |||
| ) |
Definition at line 600 of file test_al_vector.cc.
References Aleph::count(), Aleph::Vector< T, NumType >::get_it(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| LargeValues | |||
| ) |
Definition at line 699 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| MapAndFilter | |||
| ) |
Definition at line 743 of file test_al_vector.cc.
References Aleph::count(), Aleph::Vector< T, NumType >::get_it(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| MixedOperations | |||
| ) |
Definition at line 708 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| MoveAssignment | |||
| ) |
Definition at line 175 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| MoveConstructor | |||
| ) |
Definition at line 145 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| NegativeValues | |||
| ) |
Definition at line 690 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ProxyAssignmentBetweenEntries | |||
| ) |
Definition at line 588 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| ProxyParenthesesOperator | |||
| ) |
Definition at line 580 of file test_al_vector.cc.
References Aleph::maps().
| TEST_F | ( | VectorTest | , |
| ProxyReadAccess | |||
| ) |
Definition at line 551 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ProxyWriteAccess | |||
| ) |
Definition at line 562 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), and Aleph::maps().
| TEST_F | ( | VectorTest | , |
| ProxyWriteZero | |||
| ) |
Definition at line 570 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), Aleph::Vector< T, NumType >::search_entry(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarDivision | |||
| ) |
Definition at line 402 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarDivisionByOne | |||
| ) |
Definition at line 420 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarDivisionByZero | |||
| ) |
Definition at line 413 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarMultiplication | |||
| ) |
Definition at line 356 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarMultiplicationByOne | |||
| ) |
Definition at line 391 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarMultiplicationByZero | |||
| ) |
Definition at line 378 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarMultiplicationFromLeft | |||
| ) |
Definition at line 367 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarProduct | |||
| ) |
Definition at line 446 of file test_al_vector.cc.
References Aleph::maps(), Aleph::Vector< T, NumType >::scalar_product(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarProductOperator | |||
| ) |
Definition at line 463 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarProductOrthogonalVectors | |||
| ) |
Definition at line 478 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ScalarProductWithZeroVector | |||
| ) |
Definition at line 492 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| SearchEntry | |||
| ) |
Definition at line 234 of file test_al_vector.cc.
References Aleph::maps(), Aleph::Vector< T, NumType >::search_entry(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| SetAndGetEntry | |||
| ) |
Definition at line 189 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| SetEntriesSizeMismatch | |||
| ) |
Definition at line 228 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entries().
| TEST_F | ( | VectorTest | , |
| SetEntriesWithInitializerLists | |||
| ) |
Definition at line 216 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entries().
| TEST_F | ( | VectorTest | , |
| SetEntryToZeroRemovesIt | |||
| ) |
Definition at line 203 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), Aleph::Vector< T, NumType >::search_entry(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| SetEpsilon | |||
| ) |
Definition at line 265 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_epsilon(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_epsilon().
| TEST_F | ( | VectorTest | , |
| StringDomain | |||
| ) |
Definition at line 648 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| StringDomainArithmetic | |||
| ) |
Definition at line 660 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| ToList | |||
| ) |
Definition at line 622 of file test_al_vector.cc.
References Aleph::maps(), Aleph::Vector< T, NumType >::set_entry(), Aleph::HTList::size(), and Aleph::Vector< T, NumType >::to_list().
| TEST_F | ( | VectorTest | , |
| ToStr | |||
| ) |
Definition at line 633 of file test_al_vector.cc.
References Aleph::maps(), Aleph::Vector< T, NumType >::set_entry(), and Aleph::Vector< T, NumType >::to_str().
| TEST_F | ( | VectorTest | , |
| UnaryMinus | |||
| ) |
Definition at line 431 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| VectorAddition | |||
| ) |
Definition at line 293 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| VectorAdditionInPlace | |||
| ) |
Definition at line 310 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| VectorSubtraction | |||
| ) |
Definition at line 326 of file test_al_vector.cc.
References Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| VectorSubtractionInPlace | |||
| ) |
Definition at line 341 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().
| TEST_F | ( | VectorTest | , |
| VerySmallEpsilon | |||
| ) |
Definition at line 680 of file test_al_vector.cc.
References Aleph::Vector< T, NumType >::get_entry(), Aleph::maps(), and Aleph::Vector< T, NumType >::set_entry().