EXPECT_GT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ EXPECT_GT(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual ✨ this one's a macro page, it's short, it's iconic, let's go πŸ’…


🌸 NAME 🌸

EXPECT_GT β€” and that's literally it, the original page leaves the description blank after the dash, so no cap, there's no tagline here πŸ™ˆ the name is the whole personality.


✨ SYNOPSIS ✨

EXPECT_GT (expected , seen );

that's the whole thing. yes the spacing is like that. we don't ask questions, we just copy it exactly 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • expected β€” the expected value, aka the number you think it should be πŸ‘‘
  • seen β€” the measured value, aka the number reality actually handed you 😭
ngl the ARGUMENTS section calls the second one seen and then DESCRIPTION calls it measured. that's just how the page is written, i'm not fixing it, i'm just telling you so you're not confused πŸ’€

πŸ’– DESCRIPTION πŸ’–

here's the whole vibe, one line:

EXPECT_GT(expected, measured): expected > measured

so it's checking that expected is strictly greater than measured πŸ”₯ that's it. that's the macro. she's simple, she's serving, she works πŸ’…


🌈 SEE ALSO 🌈

the full squad, in order, no one left out 🫢:

like, the whole friend group showed up to the function πŸ’– literally every ASSERT_* and EXPECT_* you could want, plus the fixture girlies and operators(9) for the lore 🧚


okay that's the page!! short and sweet, main character energy in four sections ⭐

sign-off time πŸŽ€ this lil page lives in ./tools/testing/selftests and it's dated October 2026 β€” yes, 2026, she's from the future, we support her πŸ‘‘

πŸ“¦ where this page comes from