From 09cea93f70cb5a8dca103098626ccb01dc24b343 Mon Sep 17 00:00:00 2001 From: Alecio Furanze Date: Tue, 5 Sep 2023 02:21:59 +0200 Subject: [PATCH] ``impl`` add test for Float4 type --- test/ReaderTest.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/ReaderTest.cs b/test/ReaderTest.cs index a2930d8..86c3faf 100644 --- a/test/ReaderTest.cs +++ b/test/ReaderTest.cs @@ -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] @@ -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); + } }