4 ms·
Some of these tests seem backwards: "10 years software development experience." is translated as assert candidate.results['started_programming'] <= years_a
by drv 16y ago
Some of these tests seem backwards:
"10 years software development experience." is translated as
assert candidate.results['started_programming'] <= years_ago(10)
That reads like "10 years or less" rather than "10 years or more"; I'd be wary of applying to a place that can't even get that right (although maybe your first job can be fixing their ad).
Edit: Reading more closely, perhaps years_ago(10) returns the numeric year that was 10 years ago now, and 'started_programming' is an absolute year as well, in which case this test makes more sense. However, it's not intuitive to read this way...