package hostclaim import "testing" func TestPlan9Fix1SessionContinuesRequiresAdjacentForwardStep(t *testing.T) { for _, tc := range []struct { from, to string want bool }{ {"probing", "probing", true}, {"probing", "probed", true}, {"probed", "committed", true}, {"probing", "committed", false}, {"probed", "probing", false}, } { if got := SessionContinues(KindLanding, tc.from, tc.to); got != tc.want { t.Errorf("SessionContinues(%q, %q) = %v, want %v", tc.from, tc.to, got, tc.want) } } }