commit | 7ce3f2cb39deb3d4bb881a4f52dcfe5260a14099 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sat Jun 06 03:51:46 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Jun 06 03:51:46 2020 +0000 |
tree | c3f5f86c95e9374f28844a3172045521a9ff4ceb | |
parent | b13650d7877d7159a0c9fafcb91b546b28f1381a [diff] | |
parent | 208fdd1963bfaa2a149e09a63fcf08b8c870e060 [diff] |
Merge "Trivial test for difftime(3)."
diff --git a/tests/time_test.cpp b/tests/time_test.cpp index 378b4ac..74d691d 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp
@@ -1005,3 +1005,7 @@ GTEST_SKIP() << "glibc doesn't have timespec_get until 2.21"; #endif } + +TEST(time, difftime) { + ASSERT_EQ(1.0, difftime(1, 0)); +}