EXPECT_EQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… EXPECT_EQ πŸ’…

okay bestie, welcome to EXPECT_EQ, section 9 of the Kernel API Manual β€” aka the kselftest harness macro that checks whether two things are, like, the same thing. no big dramatic exits, no panic energy, just a soft little "hmm, these should match" πŸ’–


✨ NAME ✨

EXPECT_EQ β€”

(yeah the original just trails off there, no cap 😭 that's literally the whole name entry. it's giving mysterious. it's giving "she said she'd text back and then didn't" 🫢)


🌈 SYNOPSIS 🌈

EXPECT_EQ (expected , seen );

that's it. that's the whole vibe check. two things go in, judgement happens πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • expected β€” the value you're expecting to see. your hopes, your dreams, your little prediction 🌸
  • seen β€” the value you actually measured. the reality check. what the code really did πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: EXPECT_EQ(expected, measured): expected == measured β€” you're saying those two should be equal, and the harness is gonna check that expected == measured for you. it's the soft-girl version of an equality assertion, iykyk πŸ’œ

lowkey important: this is the EXPECT family, not the ASSERT family β€” check the SEE ALSO list below if you wanna meet the whole friend group πŸ’…

⭐ SEE ALSO ⭐

the whole squad, fr fr β€” go say hi πŸ‘‹


mwah πŸ’‹ that's the page!! sourced straight from ./tools/testing/selftests, dated October 2026 β€” screenshot it, memorise it, live by it. periodt. 🧚✨

πŸ“¦ where this page comes from