Skip to content

Commit

Permalink
Gosh darn float precision
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed May 1, 2024
1 parent 3e59453 commit fe463af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/ut_app/JsonUtilsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ namespace TerminalAppUnitTests
TryBasicType(std::wstring{ L"hello" }, "hello");

// float -> double
TryBasicType(1.1, 1.1f);
TryBasicType(static_cast<double>(1.1f), 1.1f);

// double -> float
TryBasicType(1.1f, 1.1);
TryBasicType(1.1f, static_cast<double>(1.1f));

TryBasicType(til::color{ 0xab, 0xcd, 0xef }, "#ABCDEF");
TryBasicType(til::color{ 0xcc, 0xcc, 0xcc }, "#CCC", "#CCCCCC");
Expand Down

0 comments on commit fe463af

Please sign in to comment.