mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
* Export MonoBehaviour byte arrays as scalars rather than sequences * Do not serialize yaml scalars, especially not for byte arrays * Eliminate unnecessary state for yaml scalars * Create a new type hierarchy for yaml scalars * Implement hexidecimal emission of floating point scalars * Implement hexidecimal emission of numeric lists * Resolves #1422 * Resolves #1409 * Resolves #1381 * Related to #927 * Related to #695
14 lines
247 B
C#
14 lines
247 B
C#
using NUnit.Framework;
|
|
|
|
namespace AssetRipper.Yaml.Tests;
|
|
|
|
internal class HexTests
|
|
{
|
|
[Test]
|
|
public void OneFloatTest()
|
|
{
|
|
YamlScalarNode node = YamlScalarNode.CreateHex(1f);
|
|
Assert.That(node.ToString(), Is.EqualTo("0x3f800000(1)"));
|
|
}
|
|
}
|