[all-commits] [llvm/llvm-project] 5dd855: [libc] Support StringView equality tests

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed Aug 10 11:24:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dd8553423904905bd8751555ef845a28ac43c0f
      https://github.com/llvm/llvm-project/commit/5dd8553423904905bd8751555ef845a28ac43c0f
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M libc/test/src/__support/integer_to_string_test.cpp
    M libc/utils/UnitTest/LibcTest.cpp
    M libc/utils/UnitTest/LibcTest.h

  Log Message:
  -----------
  [libc] Support StringView equality tests

Previously, the integer_to_string tests used EXPECT_TRUE(.equals)
which doesn't have useful error messages. Now they properly check
equality with the EXPECT_EQ macro, which allows for comparing the
strings more naturally.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D131300




More information about the All-commits mailing list