MCPcopy Create free account
hub / github.com/go-python/gopy / TestBindConsts

Function TestBindConsts

main_test.go:424–445  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

422}
423
424func TestBindConsts(t *testing.T) {
425 // t.Parallel()
426 path := "_examples/consts"
427 // NOTE: python2 does not properly output .666 decimals for unknown reasons.
428 testPkg(t, pkg{
429 path: path,
430 lang: features[path],
431 cmd: "build",
432 extras: nil,
433 want: []byte(`c1 = c1
434c2 = 42
435c3 = 666.666
436c4 = c4
437c5 = 42
438c6 = 42
439c7 = 666.666
440k1 = 1
441k2 = 2
442OK
443`),
444 })
445}
446
447func TestBindVars(t *testing.T) {
448 // t.Parallel()

Callers

nothing calls this directly

Calls 1

testPkgFunction · 0.85

Tested by

no test coverage detected