class

HaystackTest

@Js
abstract class HaystackTest : Test

HaystackTest provides convenience methods for testing common Haystack data structures.

fields m

Convenience for Marker.val

methods verifyDictEq

Verify two Dicts have same name/val pairs

verifyGridEq

Verify that two grids are equal (meta, cols, and rows)

verifyRefEq

Verify two Refs are equal for both id and dis

verifyListEq

Verify contents of two lists using verifyValEq

verifyGridIsEmpty

Verify that given grid is empty (has no rows)

verifyDictImpl

Extend verifyDictEq to fully test the implementation of given dict

verifyValEq

Verify two Haystack values are equal

n

Convenience for constructing a Number where unit may be either a Str name or a Unit instance

m const static Marker : m

Convenience for Marker.val

n static Number? n(Num? val, Obj? unit)

Convenience for constructing a Number where unit may be either a Str name or a Unit instance.

verifyDictEq Void verifyDictEq(Dict a, Obj b, Str? msg)

Verify two Dicts have same name/val pairs

verifyDictImpl Void verifyDictImpl(Dict d, Str:Obj expect)

Extend verifyDictEq to fully test the implementation of given dict

verifyGridEq Void verifyGridEq(Grid a, Grid b)

Verify that two grids are equal (meta, cols, and rows)

verifyGridIsEmpty Void verifyGridIsEmpty(Grid g)

Verify that given grid is empty (has no rows)

verifyListEq virtual Void verifyListEq(List a, List b, Str? msg)

Verify contents of two lists using verifyValEq

verifyRefEq Void verifyRefEq(Ref a, Ref b, Str? msg)

Verify two Refs are equal for both id and dis

verifyValEq Void verifyValEq(Obj? a, Obj? b, Str? msg)

Verify two Haystack values are equal. This method provides additional checking for types which don't support equal including:

  • Ref.dis
  • Dict
  • Grid

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST