summaryrefslogtreecommitdiff
path: root/lib/linear_ranges.c
diff options
context:
space:
mode:
authorDaniel Latypov <dlatypov@google.com>2021-04-02 22:33:57 +0300
committerShuah Khan <skhan@linuxfoundation.org>2021-04-02 23:14:16 +0300
commitacd976253c0ce98e92c766bd720bb00e4c2facb6 (patch)
treec97d398a80aa9f84c50616617b59b8f2782d9404 /lib/linear_ranges.c
parent2f9f21cdcd71d0c523676f551ea5c4f78d8e6f61 (diff)
downloadlinux-acd976253c0ce98e92c766bd720bb00e4c2facb6.tar.xz
kunit: make KUNIT_EXPECT_STREQ() quote values, don't print literals
Before: > Expected str == "world", but > str == hello > "world" == world After: > Expected str == "world", but > str == "hello" <we don't need to tell the user that "world" == "world"> Note: like the literal ellision for integers, this doesn't handle the case of KUNIT_EXPECT_STREQ(test, "hello", "world") since we don't expect it to realistically happen in checked in tests. (If you really wanted a test to fail, KUNIT_FAIL("msg") exists) In that case, you'd get: > Expected "hello" == "world", but <output for next failure> Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/linear_ranges.c')
0 files changed, 0 insertions, 0 deletions