Skip to content

Commit

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

public ReaderTest() { }

[Fact]
Expand Down Expand Up @@ -277,4 +279,15 @@ public void ImplFloat3()
Assert.Equal(FLOAT_Y, result.Y);
Assert.Equal(FLOAT_Z, result.Z);
}

[Fact]
public void ImplFloat4()
{
var result = new Float4(FLOAT_X, FLOAT_Y, FLOAT_Z, FLOAT_W);

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

0 comments on commit 09cea93

Please sign in to comment.