ASSERT_STREQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ ASSERT_STREQ β€” the kernel API manual, bestie edition ✨

okay so real talk, this is a page from the Kernel API Manual, section 9, and it's a short one β€” but every crumb of it is here, promise 🫢


🌸 NAME 🌸

ASSERT_STREQ β€” and that's... literally it, bestie 😭 the original has the dash and then nothing after it. No description, no tagline, the NAME line just trails off like a text message you forgot to finish. So we move on πŸ’…


✨ SYNOPSIS ✨

ASSERT_STREQ (expected , seen );

that's the whole vibe check β€” you call it, you give it two things, and it does its little check πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • expected β€” the expected value πŸ‘‘ like, this is the one you're manifesting
  • seen β€” the measured value 🌸 aka the one reality actually handed you

πŸ’– DESCRIPTION πŸ’–

ASSERT_STREQ(expected, measured): !strcmp(expected, measured)

so basically πŸ‘ it's !strcmp on the two strings β€” you pass in what you wanted (expected) and what you got (measured), and it does the comparing for you. no cap, that's the entire bit 🧚

ngl the signature here says expected , seen up top and then the description calls the second one measured β€” that's just how the original rolls, so don't come for me, I'm reporting it verbatim πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group shows up for this one, fr fr πŸ’€


and that's the whole page, bestie πŸŽ‰ short, sweet, and extremely to-the-point β€” main character energy honestly πŸ‘‘

sign-off time 🫢 this little beauty lives under the source path ./tools/testing/selftests and it's dated October 2026 β€” so go forth and compare those strings, periodt πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from