#include "Test.h"

#include "Length.h"
#include "Point_3D_impl.h"

namespace MM
{

class Length_test : public Test
{
public:
    Length_test (const Text & suite_name) : Test(suite_name) { }

    void run ()
    {
        test();     count_tests();
    }

    void test()
    {
        Point_3D_impl vector1 (0,0,0);
        Point_3D_impl vector2 (0,1,1);

        Length length (vector1, vector2);

        DOUBLES_EQUAL (1.41421356237309504, length.value(), 0.000001);
    }
};

Length_test test_length ("correctness");

}//MM
