mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-21 20:14:41 +00:00
24 lines
435 B
Go
24 lines
435 B
Go
package core
|
|
|
|
import "testing"
|
|
|
|
func TestGetRightOrbiterUp(t *testing.T) {
|
|
r := convertStringLabelToInt("orbiter.up", map[string]string{
|
|
"orbiter.up": "3",
|
|
"orbiter.down": "3",
|
|
})
|
|
if r != 3 {
|
|
t.Fatalf("%d != 3", r)
|
|
}
|
|
}
|
|
|
|
func TestGetRightOrbiterDown(t *testing.T) {
|
|
r := convertStringLabelToInt("orbiter.down", map[string]string{
|
|
"orbiter.up": "3",
|
|
"orbiter.down": "2",
|
|
})
|
|
if r != 2 {
|
|
t.Fatalf("%d != 2", r)
|
|
}
|
|
}
|