ds5678 13edc04cd1 Huge yaml export memory improvements
* 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
2024-08-04 14:32:11 -07:00

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)"));
}
}