TESTS
This commit is contained in:
@@ -1254,15 +1254,6 @@ public readonly partial record struct {typeNameZ} : IMensuraUnit<{typeNameZ}>, I
|
||||
|
||||
public static class {typeNameZ}Extensions
|
||||
{
|
||||
internal static double Protected(this {typeNameZ}? unit) => unit is null ? 0d : unit.Value._Value;
|
||||
internal static {typeNameZ} ProtectedU(this {typeNameZ}? unit) => unit is null ? {typeNameZ}.Zero : unit.Value;
|
||||
internal static double ToDouble(this {typeNameB}? unit) => unit?._Value ?? 0d;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// === ReadOnlySpan
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Div(this ReadOnlySpan<{typeNameZ}> units,
|
||||
double divisor, Span<{typeNameZ}> destination) => units.Div<{typeNameZ}>(divisor, destination);
|
||||
|
||||
@@ -1073,14 +1073,6 @@ public readonly partial record struct {typeName} : IMensuraUnit<{typeName}>, IEq
|
||||
|
||||
public static class {typeName}Extensions
|
||||
{
|
||||
internal static double Protected(this {typeName}? unit) => unit is null ? 0d : unit.Value._Value;
|
||||
internal static {typeName} ProtectedU(this {typeName}? unit) => unit is null ? {typeName}.Zero : unit.Value;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// === ReadOnlySpan
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Div(this ReadOnlySpan<{typeName}> units,
|
||||
double divisor, Span<{typeName}> destination) => units.Div<{typeName}>(divisor, destination);
|
||||
|
||||
Reference in New Issue
Block a user