(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestTemporalAtomString_Point(t *testing.T) { |
| 20 | v := Variable{Symbol: "T"} |
| 21 | bound := NewVariableBound(v) |
| 22 | interval := NewInterval(bound, bound) |
| 23 | atom := NewAtom("p", Variable{Symbol: "X"}) |
| 24 | ta := TemporalAtom{Atom: atom, Interval: &interval} |
| 25 | |
| 26 | got := ta.String() |
| 27 | want := "p(X)@[T]" |
| 28 | if got != want { |
| 29 | t.Errorf("TemporalAtom{p(X), @[T]}.String() = %q, want %q", got, want) |
| 30 | } |
| 31 | } |
nothing calls this directly
no test coverage detected