diff --git a/test/ReaderTest.cs b/test/ReaderTest.cs index 29fdd5a..9e6a748 100644 --- a/test/ReaderTest.cs +++ b/test/ReaderTest.cs @@ -1,11 +1,12 @@ using System; using Byter; using Xunit; -using Xunit.Abstractions; namespace ByterTest; public class ReaderTest { + private const float FLOAT_X = 1024 * 2; + private const float FLOAT_Y = 1024 * 4; public ReaderTest() { } [Fact] @@ -256,4 +257,13 @@ public void ReadFloat3() Assert.Equal(target, result); Assert.True(reader.Success); } + + [Fact] + public void ImplFloat2() + { + var result = new Float2(FLOAT_X, FLOAT_Y); + + Assert.Equal(FLOAT_X, result.X); + Assert.Equal(FLOAT_Y, result.Y); + } }