Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andersnm committed Oct 2, 2020
1 parent 8e1369b commit 38c6a71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ExcelNumberFormat.Tests/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ public void TestDate()
[TestMethod]
public void TestNumericDate1900()
{
// Test("0", "dd/mm/yyyy", "00/01/1900"); // not work: strings are always formatted as text using the third section
Test("0", "dd/mm/yyyy", "0");
Test(0, "dd/mm/yyyy", "00/01/1900");
Test(0d, "dd/mm/yyyy", "00/01/1900");
Test((short)0, "dd/mm/yyyy", "00/01/1900");
Test(1, "dd/mm/yyyy", "01/01/1900");
Test(60, "dd/mm/yyyy", "29/02/1900");
Test(61, "dd/mm/yyyy", "01/03/1900");
Test(43648, "[$-409]d\\-mmm\\-yyyy;@", "2-Jul-2019");
}

[TestMethod]
Expand Down

0 comments on commit 38c6a71

Please sign in to comment.