Skip to content

Commit

Permalink
Update literal values to match concepts in new runtime behavior
Browse files Browse the repository at this point in the history
Turned off the ignore for the tests
  • Loading branch information
BenjaminMichaelis committed Dec 20, 2021
1 parent a278211 commit 2e45888
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Chapter02.Tests/Listing02.02.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_02.Tests
public class LiteralValueTests
{
[TestMethod]
[Ignore]
public void Main_WriteNumbers()
{
const string expected = @"1.61803398874989";
const string expected = @"1.618033988749895";

IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, Program.Main);
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter02.Tests/Listing02.03.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class LiteralValueTests
[TestMethod]
public void Main_WriteNumbers()
{
const string expected = @"1.618033988749895";
const string expected = @"1.6180339887498948";

IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, Program.Main);
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.02.SpecifyingALiteralDouble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class Program
{
public static void Main()
{
System.Console.WriteLine(1.618033988749895);
System.Console.WriteLine(1.6180339887498948);
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.03.SpecifyingALiteralDecimal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class Program
{
public static void Main()
{
System.Console.WriteLine(1.618033988749895M);
System.Console.WriteLine(1.6180339887498948M);
}
}
}

0 comments on commit 2e45888

Please sign in to comment.