labs

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual

func DeepEqual(x, y any) bool

DeepEqual 深度比较是否相等

这里重构的目的是float类型中NaN和Inf的处理, 从数据的逻辑层面上应该记作相等

func FloatEqual

func FloatEqual[T ~float32 | ~float64](got, want T) bool

FloatEqual 浮点值相等或者均为NaN

func SliceWantFloat

func SliceWantFloat[T ~float32 | ~float64](got, want []T) bool

SliceWantFloat 比较两个浮点切片

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL