Skip to content

Commit

Permalink
Merge pull request #352 from mpostol/TUL23Summer
Browse files Browse the repository at this point in the history
Tul23 summer last update
  • Loading branch information
mpostol authored Jul 28, 2023
2 parents d835ff1 + 307ba4c commit 3e05251
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions InformationComputation/AnonymousTypes/TypesCompatibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ public class TypesCompatibility
[TestMethod]
public void DivisionTest()
{
//double example
float dubleExample = 5;
float dubleExampleDividedBy2 = dubleExample / 2;
Assert.AreEqual(2.5, dubleExampleDividedBy2);

//int example
int integerExample = 5;
dubleExampleDividedBy2 = integerExample / 2;
Assert.AreEqual(2, dubleExampleDividedBy2);
int intDdividend = 5;
float result = intDdividend / 2;
Assert.AreEqual(2, result);

//float example
float dividend = 5;
result = dividend / 2;
Assert.AreEqual(2.5, result);
}

[TestMethod]
Expand Down

0 comments on commit 3e05251

Please sign in to comment.