Skip to content

Commit 674e7d7

Browse files
committed
fix assert sample code, add mention of samle/ dir
1 parent 20bdd14 commit 674e7d7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ func TestWebOfTrustInfo(t *testing.T) {
389389
// And if there's violations during the test run they are reported as
390390
// test failures for this TestWebOfTrustInfo -test.
391391

392-
assert.Equal(0, wot.CommonInvider)
393-
assert.Equal(1, wot.Hops)
392+
assert.Equal(wot.CommonInvider, 0)
393+
assert.Equal(wot.Hops, 1)
394394

395395
wot = NewWebOfTrust(bob.Node, carol.Node)
396-
assert.Equal(-1, wot.CommonInvider)
397-
assert.Equal(-1, wot.Hops)
396+
assert.Equal(wot.CommonInvider, hop.NotConnected)
397+
assert.Equal(wot.Hops, hop.NotConnected)
398398
...
399399
```
400400
@@ -628,4 +628,5 @@ Please see the full version history from [CHANGELOG](./CHANGELOG.md).
628628
which are even more readable than `-err2-trace`, `err2.SetErrorTracer` with
629629
long error return traces
630630
- A new automatic error formatter/generator added for `TryCopyFile` convention
631-
- Better documentation
631+
- New features for `sample/` to demonstrate latest features
632+
- Extended documentation

0 commit comments

Comments
 (0)