feat(cpp-object-oriented-modular-refactoring): step 9 - result-io-vector3
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
@@ -13,6 +14,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "fesa/io/abaqus/input_reader.h"
|
||||
#include "fesa/math/vector3.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -239,6 +241,7 @@ RootAssembly, 6, -12.5
|
||||
|
||||
} // namespace
|
||||
|
||||
// C-DUP-002
|
||||
TEST(InpDomainMapping, MapsEverySupportedKeywordAndLegacyDeck) {
|
||||
auto result = MapText("supported-inventory", SupportedInventoryDeck(true));
|
||||
ASSERT_TRUE(result.HasValue());
|
||||
@@ -425,6 +428,17 @@ OnlySecond, 2, 5.
|
||||
"2, 1., 0., 0.", "2, 1e308, 1e297, 0."),
|
||||
"0., 1., 0.", "1e308, 0., 0."));
|
||||
ASSERT_TRUE(large_finite.HasValue());
|
||||
const auto& large_domain = large_finite.Value();
|
||||
ASSERT_EQ(large_domain.Nodes().size(), 2U);
|
||||
const fesa::Vector3 large_delta =
|
||||
fesa::Vector3{large_domain.Nodes()[1U].coordinates} -
|
||||
fesa::Vector3{large_domain.Nodes()[0U].coordinates};
|
||||
EXPECT_TRUE(large_delta.IsFinite());
|
||||
EXPECT_TRUE(std::isfinite(large_delta.Norm()));
|
||||
EXPECT_DOUBLE_EQ(large_delta.Y(), 1.0e297);
|
||||
const fesa::Vector3 large_guide{large_domain.Sections()[0U].first_axis};
|
||||
EXPECT_TRUE(large_guide.IsFinite());
|
||||
EXPECT_TRUE(std::isfinite(large_guide.Norm()));
|
||||
}
|
||||
|
||||
TEST(InpDomainMapping, KeepsNodeAndElementSetNamesInSeparateNamespaces) {
|
||||
|
||||
Reference in New Issue
Block a user