comparison UnitTestsSources/UnitTestsMain.cpp @ 1630:78509230f0d7

SortedFrames sharing code with CoordinateSystem3D
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 18:01:32 +0100
parents 4fb8fdf03314
children 4a43106bc122
comparison
equal deleted inserted replaced
1629:7fc8a3ff09ee 1630:78509230f0d7
877 ASSERT_NE(ref, u); 877 ASSERT_NE(ref, u);
878 } 878 }
879 } 879 }
880 880
881 881
882 TEST(CoordinateSystem3D, Basic)
883 {
884 {
885 OrthancStone::CoordinateSystem3D c;
886 ASSERT_FALSE(c.IsValid());
887 ASSERT_FLOAT_EQ(c.GetNormal()[0], 0);
888 ASSERT_FLOAT_EQ(c.GetNormal()[1], 0);
889 ASSERT_FLOAT_EQ(c.GetNormal()[2], 1);
890 }
891
892 {
893 OrthancStone::CoordinateSystem3D c("nope1", "nope2");
894 ASSERT_FALSE(c.IsValid());
895 ASSERT_FLOAT_EQ(c.GetNormal()[0], 0);
896 ASSERT_FLOAT_EQ(c.GetNormal()[1], 0);
897 ASSERT_FLOAT_EQ(c.GetNormal()[2], 1);
898 }
899 }
900
901
882 int main(int argc, char **argv) 902 int main(int argc, char **argv)
883 { 903 {
884 Orthanc::Logging::Initialize(); 904 Orthanc::Logging::Initialize();
885 Orthanc::Logging::EnableInfoLevel(true); 905 Orthanc::Logging::EnableInfoLevel(true);
886 906