Skip to content

Commit

Permalink
impl add test for Float3 type
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Sep 5, 2023
1 parent 300090d commit f29bc37
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ReaderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class ReaderTest
{
private const float FLOAT_X = 1024 * 2;
private const float FLOAT_Y = 1024 * 4;
private const float FLOAT_Z = 1024 * 6;
public ReaderTest() { }

[Fact]
Expand Down Expand Up @@ -266,4 +267,14 @@ public void ImplFloat2()
Assert.Equal(FLOAT_X, result.X);
Assert.Equal(FLOAT_Y, result.Y);
}

[Fact]
public void ImplFloat3()
{
var result = new Float3(FLOAT_X, FLOAT_Y, FLOAT_Z);

Assert.Equal(FLOAT_X, result.X);
Assert.Equal(FLOAT_Y, result.Y);
Assert.Equal(FLOAT_Z, result.Z);
}
}

0 comments on commit f29bc37

Please sign in to comment.