(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestCopy(t *testing.T) { |
| 73 | v0 := Vector{Counters: []Counter{{ID: 42, Value: 1}}} |
| 74 | v1 := v0.Copy() |
| 75 | v1.Update(42) |
| 76 | if v0.Compare(v1) != Lesser { |
| 77 | t.Errorf("Copy error, %+v should be ancestor of %+v", v0, v1) |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | func TestMerge(t *testing.T) { |
| 82 | testcases := []struct { |