Skip to content
Snippets Groups Projects
Commit 04e90740 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Remove tests with undefined behavior

parent c6439fdf
Branches
Tags
1 merge request!1231Make Hybrid::switchCases more hybrid
Pipeline #60424 passed
Pipeline: Dune Nightly Test

#60425

    ......@@ -124,11 +124,6 @@ void testSwitchCases(Dune::TestSuite& test,
    foundValue = getContainerValue(index);
    };
    foundValue= -1;
    Dune::Hybrid::switchCases(indexRange, 7, setFoundValue);
    test.check(foundValue == -1)
    << "Hybrid::switchCases with non-matching index and without default failed.";
    foundValue= -1;
    Dune::Hybrid::switchCases(indexRange, 2, setFoundValue);
    test.check(foundValue == dynContainer[2])
    ......@@ -162,11 +157,6 @@ void testSwitchCases(Dune::TestSuite& test,
    << "Hybrid::switchCases with matching integral_constant index and with default failed.";
    }
    foundValue= -1;
    Dune::Hybrid::switchCases(indexRange, _7, setFoundValue);
    test.check(foundValue == -1)
    << "Hybrid::switchCases with non-matching integral_constant index and without default failed.";
    foundValue= -1;
    Dune::Hybrid::switchCases(indexRange, _2, setFoundValue);
    test.check(foundValue == dynContainer[2])
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment