-
Code int doubleValue(int x) { return x * 2; }
Test Cases // TODO: Replace examples and use TDD by writing your own tests Describe(sampleTests) { It(shouldBe) { Assert::That(doubleValue(5), Equals(10)); } };
Output:
-
Code #include<iostream>- int doubleValue(int x) {
- return x * 2;
- }
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}