Reputation
226
Top tag
Next privilege 250 Rep.
View close votes
Badges
2 6
Impact
~5k people reached

  • 0 posts edited
  • 0 helpful flags
  • 7 votes cast
Jan
13
comment how to unit test constant that define an implementation detail?
@amon yes exactly
Jan
13
comment how to unit test constant that define an implementation detail?
@amon : basically the value of 30 secs was previously a few seconds, which caused issues because our server kep reloading tons of data and we had poor performances. With around 30 secs we measured that we get correct performances and no bottleneck, etc. So this test is made to ensure that the TTL is set to "around" this value
Jan
13
asked how to unit test constant that define an implementation detail?
Nov
25
awarded  Notable Question
Dec
29
awarded  Yearling
Jan
1
awarded  Popular Question
Dec
30
awarded  Scholar
Dec
30
accepted How does unit testing work?
Dec
30
awarded  Nice Question
Dec
29
awarded  Editor
Dec
29
revised How does unit testing work?
added 115 characters in body
Dec
29
comment How does unit testing work?
in this case the "signature" of the method is not massive, I just read from a std::vector<bool> that is a class member. I should also have precised that i'm porting (possibly badly designed) ruby code (that I didn't make)
Dec
29
awarded  Supporter
Dec
29
awarded  Student
Dec
29
asked How does unit testing work?