]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/toss_test.go
Simplified conditions
[nncp.git] / src / toss_test.go
index b17fc7ba6ec8e2f4acc2f81965dc6051472fc4bd..966b2b84ae4a0914d42ad2681e64dbca6b4e4bc1 100644 (file)
@@ -315,10 +315,7 @@ func TestTossFileSameName(t *testing.T) {
                        }
                        delete(expected, filename)
                }
-               if len(expected) != 0 {
-                       return false
-               }
-               return true
+               return len(expected) == 0
        }
        if err := quick.Check(f, nil); err != nil {
                t.Error(err)
@@ -518,10 +515,7 @@ func TestTossTrns(t *testing.T) {
                                }
                        }
                }
-               if len(datum) > 0 {
-                       return false
-               }
-               return true
+               return len(datum) == 0
        }
        if err := quick.Check(f, nil); err != nil {
                t.Error(err)