Skip to content

Commit

Permalink
Add test cases for Ne and Eq type normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
bep authored and tychoish committed Aug 13, 2017
1 parent ee9331b commit 4528e19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tpl/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ func doTestCompare(t *testing.T, tp tstCompareType, funcUnderTest func(a, b inte
{5, 8, -1},
{8, 5, 1},
{5, 5, 0},
{int(5), int64(5), 0},
{int32(5), int(5), 0},
{int16(4), int(5), -1},
{uint(15), uint64(15), 0},
{-2, 1, -1},
{2, -5, 1},
{0.0, 1.23, -1},
{1.1, 1.1, 0},
{float32(1.0), float64(1.0), 0},
{1.23, 0.0, 1},
{"5", "5", 0},
{"8", "5", 1},
Expand Down

0 comments on commit 4528e19

Please sign in to comment.