/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
TEST(StringUtilityTest, EndsWith)
{
EXPECT_TRUE(gmx::endsWith("foobar", "bar"));
- EXPECT_TRUE(gmx::endsWith("foobar", NULL));
+ EXPECT_TRUE(gmx::endsWith("foobar", nullptr));
EXPECT_TRUE(gmx::endsWith("foobar", ""));
EXPECT_TRUE(gmx::endsWith("", ""));
EXPECT_FALSE(gmx::endsWith("", "foobar"));
TEST(StringUtilityTest, StripSuffixIfPresent)
{
EXPECT_EQ("foo", gmx::stripSuffixIfPresent("foobar", "bar"));
- EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", NULL));
+ EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", nullptr));
EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", ""));
EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", "bbar"));
EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", "barr"));