• Kirill Smelkov's avatar
    *: Switch reflect.DeepEqual to own deepEqual that supports Dict · 8be3fcab
    Kirill Smelkov authored
    reflect.DeepEqual does not work with Dicts because each Dict uses own
    distinct random seed. But in the tests we will need to be able to
    compare arbitrary objects, including Dicts.
    
    -> Fix this via implementing our own deepEqual that extends
       reflect.DeepEqual to also support Dicts.
    
    Handle only top-level Dicts for now as that level of support will be
    enough for our tests.
    8be3fcab
xreflect.go 1.18 KB