Transformers\HashTests.cs (25)
232HashTestCore((byte)value, NumberDataViewType.Byte, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
233HashTestCore((byte)value, new KeyDataViewType(typeof(byte), byte.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
237HashTestCore((ushort)value, NumberDataViewType.UInt16, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
238HashTestCore((ushort)value, new KeyDataViewType(typeof(ushort), ushort.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
242HashTestCore((uint)value, NumberDataViewType.UInt32, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
243HashTestCore((uint)value, new KeyDataViewType(typeof(uint), int.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
248HashTestCore((sbyte)value, NumberDataViewType.SByte, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
250HashTestCore((short)value, NumberDataViewType.Int16, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
252HashTestCore((int)value, NumberDataViewType.Int32, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
262HashTestCore(value, NumberDataViewType.UInt64, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
266HashTestCore((long)value, NumberDataViewType.Int64, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
269HashTestCore(value, new KeyDataViewType(typeof(ulong), int.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
274HashTestCore(new DataViewRowId(value, 0), RowIdDataViewType.Instance, expected, expectedOrdered, expectedOrdered3, expectedCombined, expectedCombinedSparse);
295HashTestCore("".AsMemory(), TextDataViewType.Instance, 0, 0, 0, 0, 0);
296HashTestCore("hello".AsMemory(), TextDataViewType.Instance, 940, 951, 857, 770, 0);
302HashTestCore(1f, NumberDataViewType.Single, 463, 855, 732, 56, 557);
303HashTestCore(-1f, NumberDataViewType.Single, 252, 612, 780, 116, 515);
304HashTestCore(0f, NumberDataViewType.Single, 842, 358, 20, 429, 333);
305HashTestCore(float.NaN, NumberDataViewType.Single, 0, 0, 0, 0, 0);
307HashTestCore(1d, NumberDataViewType.Double, 188, 57, 690, 655, 896);
308HashTestCore(-1d, NumberDataViewType.Double, 885, 804, 22, 461, 309);
309HashTestCore(0d, NumberDataViewType.Double, 512, 851, 795, 333, 113);
310HashTestCore(double.NaN, NumberDataViewType.Double, 0, 0, 0, 0, 0);
317HashTestCore(false, BooleanDataViewType.Instance, 842, 358, 20, 429, 333);
318HashTestCore(true, BooleanDataViewType.Instance, 502, 537, 746, 847, 711);