FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Numbers/cpp/Platform.Numbers.Tests/ArithmeticTests.cpp at main · linksplatform/Numbers · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
linksplatform
/
Numbers
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
3
Code
Issues
4
Pull requests
7
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
Numbers
/
cpp
/
Platform.Numbers.Tests
/
ArithmeticTests.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (16 loc) · 590 Bytes
Breadcrumbs
Numbers
/
cpp
/
Platform.Numbers.Tests
/
ArithmeticTests.cpp
Copy path
File metadata and controls
16 lines (16 loc) · 590 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespac
e
Platfor
m::Numbers::Tests
{
TEST_CLASS
(ArithmeticTests)
{
public:
TEST_METHOD
(CompiledOperationsTest)
{
Assert::AreEqual
(
3
,
1
+
2
);
Assert::AreEqual
(
1
, Arithmetic.
Subtract
(
2
,
1
));
Assert::AreEqual
(
8
, Arithmetic.
Multiply
(
2
,
4
));
Assert::AreEqual
(
4
, Arithmetic.
Divide
(
8
,
2
));
Assert::AreEqual
(
2
,
1
+
1
);
Assert::AreEqual
(
1UL
,
2UL
-
1
);
Assert::ExpectException<NotSupportedException>([&]()->
auto
{
return
Arithmetic<std::string>.
Subtract
(
"
1
"
,
"
2
"
); });
}
};
}
Back
|
FazBrowse Home
|
New Git URL