Skip to content

Commit

Permalink
Exclude float test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescourtney committed Nov 24, 2024
1 parent 492c60f commit ebc7948
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Tests/FlatSharpEndToEndTests/ClassLib/BigSpanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,26 +134,28 @@ public void ReadWrite_ULong(ulong value) => TestReadWrite(
(bs, v) => bs.WriteULong(0, v),
value);

#if !AOT
[TestMethod]
[DataRow(float.MinValue)]
[DataRow((float)-1)]
[DataRow((float)0)]
[DataRow((float)1)]
[DataRow(-1f)]
[DataRow(0f)]
[DataRow(1f)]
[DataRow(float.MaxValue)]
public void ReadWrite_Long(float value) => TestReadWrite(
public void ReadWrite_Float(float value) => TestReadWrite(
s => BinaryPrimitives.ReadSingleLittleEndian(s),

Check failure on line 145 in src/Tests/FlatSharpEndToEndTests/ClassLib/BigSpanTests.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, win-x64)

'BinaryPrimitives' does not contain a definition for 'ReadSingleLittleEndian'

Check failure on line 145 in src/Tests/FlatSharpEndToEndTests/ClassLib/BigSpanTests.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, win-x64)

'BinaryPrimitives' does not contain a definition for 'ReadSingleLittleEndian'
bs => bs.ReadFloat(0),
(s, v) => BinaryPrimitives.WriteSingleLittleEndian(s, v),
(bs, v) => bs.WriteFloat(0, v),
value);
#endif

[TestMethod]
[DataRow(double.MinValue)]
[DataRow((double)-1)]
[DataRow((double)0)]
[DataRow((double)1)]
[DataRow(-1d)]
[DataRow(0d)]
[DataRow(1d)]
[DataRow(double.MaxValue)]
public void ReadWrite_Long(double value) => TestReadWrite(
public void ReadWrite_Double(double value) => TestReadWrite(
s => BinaryPrimitives.ReadDoubleLittleEndian(s),

Check failure on line 159 in src/Tests/FlatSharpEndToEndTests/ClassLib/BigSpanTests.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, win-x64)

'BinaryPrimitives' does not contain a definition for 'ReadDoubleLittleEndian'

Check failure on line 159 in src/Tests/FlatSharpEndToEndTests/ClassLib/BigSpanTests.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, win-x64)

'BinaryPrimitives' does not contain a definition for 'ReadDoubleLittleEndian'
bs => bs.ReadDouble(0),
(s, v) => BinaryPrimitives.WriteDoubleLittleEndian(s, v),
Expand Down

0 comments on commit ebc7948

Please sign in to comment.