MCPcopy Index your code
hub / github.com/google/mangle / TestTemporalAtomString_Point

Function TestTemporalAtomString_Point

ast/temporal_string_test.go:19–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func 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}

Callers

nothing calls this directly

Calls 4

StringMethod · 0.95
NewVariableBoundFunction · 0.85
NewIntervalFunction · 0.85
NewAtomFunction · 0.85

Tested by

no test coverage detected