MCPcopy Create free account
hub / github.com/cloe-lang/cloe / TestStringInsertWithNonString

Function TestStringInsertWithNonString

src/lib/core/string_test.go:153–156  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

151}
152
153func TestStringInsertWithNonString(t *testing.T) {
154 _, ok := EvalPure(PApp(Insert, NewString("foo"), NewNumber(1), Nil)).(*ErrorType)
155 assert.True(t, ok)
156}
157
158func TestStringCompare(t *testing.T) {
159 for _, c := range []struct {

Callers

nothing calls this directly

Calls 4

EvalPureFunction · 0.85
PAppFunction · 0.85
NewStringFunction · 0.85
NewNumberFunction · 0.85

Tested by

no test coverage detected