package main

import "testing"

func TestBloomFalsePositive(t *testing.T) {
	all, fp := bloomDemo()
	if !all || fp == "" {
		t.Fatal(all, fp)
	}
}
func TestSingleflightIsNotCache(t *testing.T) {
	first, shared, next := mergedWave()
	if first != 1 || shared != 20 || next != 2 {
		t.Fatal(first, shared, next)
	}
}
func TestWaiterCancellationDoesNotCancelLeader(t *testing.T) {
	cancel, value := cancelledWaiter()
	if !cancel || value != "completed" {
		t.Fatal(cancel, value)
	}
}
