[libcxx-commits] [PATCH] D146250: [libc++][spaceship] Implement `operator<=>` for `time_point`

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 24 09:59:15 PDT 2023


Mordante added inline comments.


================
Comment at: libcxx/test/std/time/time.point/time.point.comparisons/compare.three_way.pass.cpp:61
+
+  using DInt30Hz = std::chrono::duration<int, std::ratio<1, 30>>;
+  using DInt60Hz = std::chrono::duration<int, std::ratio<1, 60>>;
----------------
Instead of one big test I would suggest to use 3 smaller tests and call these 3 test from this test function.

That makes is clearer which 3 parts you are testing.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146250/new/

https://reviews.llvm.org/D146250



More information about the libcxx-commits mailing list