mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
d4770ddc77
Move infrastructure related commands to under `cmd/infra` and development stuff to `cmd/dev`. The default build command builds the regular user facing binaries: syncthing, stdiscosrv, and strelaysrv.
22 lines
376 B
Go
22 lines
376 B
Go
// Copyright (C) 2015 Audrius Butkevicius and Contributors (see the CONTRIBUTORS file).
|
|
|
|
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestMerge(t *testing.T) {
|
|
if mergeValue(1001, 1000) != 1001 {
|
|
t.Error("the computer says no")
|
|
}
|
|
|
|
if mergeValue(999, 1000) != 1000 {
|
|
t.Error("the computer says no")
|
|
}
|
|
|
|
if mergeValue(1, 1000) != 1 {
|
|
t.Error("the computer says no")
|
|
}
|
|
}
|