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

Function TestIntervalString_Point

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

Source from the content-addressed store, hash-verified

5)
6
7func TestIntervalString_Point(t *testing.T) {
8 v := Variable{Symbol: "T"}
9 bound := NewVariableBound(v)
10 interval := NewInterval(bound, bound)
11
12 got := interval.String()
13 want := "@[T]"
14 if got != want {
15 t.Errorf("Interval{T, T}.String() = %q, want %q", got, want)
16 }
17}
18
19func TestTemporalAtomString_Point(t *testing.T) {
20 v := Variable{Symbol: "T"}

Callers

nothing calls this directly

Calls 3

StringMethod · 0.95
NewVariableBoundFunction · 0.85
NewIntervalFunction · 0.85

Tested by

no test coverage detected