ASSERT_NE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ASSERT_NE(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for ASSERT_NE(9) β€” yes that's the man page title, no I'm not gonna make you read a header line twice, we're folding that in like a good little intro πŸŽ€


πŸ’– NAME πŸ’–

ASSERT_NE β€” and that's it. That's the whole description. The NAME line after the dash is literally empty 😭 no cap, nothing follows the hyphen. Iconic of it honestly. The real tea is all further down πŸ‘‡


🌸 SYNOPSIS 🌸

ASSERT_NE (expected , seen );

that's the whole call, bestie, copy it exactly β€” note the space before the comma and the semicolon at the end, keep it character for character πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • expected β€” the value you're expecting, i.e. the one your brain says it should be
  • seen β€” the value you actually measured, i.e. what the code really handed you πŸ‘€

🧚 DESCRIPTION 🧚

ASSERT_NE(expected, measured) β€” and the vibe check is:

expected != measured

that's it. that's the whole thing. it asserts they are not equal. if expected and measured turn out to be the same, it's giving πŸ’€, not slay. periodt. 🫢


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” every single one, no skipping:

(and yes, ASSERT_NE(9) itself is not in its own SEE ALSO list β€” we don't make the rules, we just read them πŸ“)


ok that's the whole page, go assert something not-equal and have the best day πŸ’œ

sign-off szn πŸ¦‹ this little icon came from ./tools/testing/selftests, dated October 2026 β€” mwah, drink water, test your code, ily βœ¨πŸ‘‘

πŸ“¦ where this page comes from