olexander_dan

NewTests

Sep 23rd, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1.             if (type is int) {
  2.                 typeTestsList.Add(() => {
  3.                     int a = 2, b = 2, c = 1;
  4.                     for (int i = 0; i < NumOfIterations; ++i) { a = b + c;  b = a + c; c = a + b; }
  5.                 });
  6.                 typeTestsList.Add(() => {
  7.                     int a = 2, b = 2, c = 1;
  8.                     for (int i = 0; i < NumOfIterations; ++i) { a = b - c; b = a - c; c = a - b; }
  9.                 });
  10.                 typeTestsList.Add(() => {
  11.                     int a = 2, b = 2, c = 1;
  12.                     for (int i = 0; i < NumOfIterations; ++i) { a = b * c; b = a * c; c = a * b; }
  13.                 });
  14.                 typeTestsList.Add(() => {
  15.                     int a = 2, b = 2, c = 1;
  16.                     for (int i = 0; i < NumOfIterations; ++i) { a = b / c; b = a / c; c = a / b; }
  17.                 });
Advertisement
Add Comment
Please, Sign In to add comment