MCPcopy
hub / github.com/tinygo-org/tinygo / stringSlicesEqual

Function stringSlicesEqual

main_test.go:565–577  ·  view source on GitHub ↗
(s1, s2 []string)

Source from the content-addressed store, hash-verified

563}
564
565func stringSlicesEqual(s1, s2 []string) bool {
566 // We can use slices.Equal once we drop support for Go 1.20 (it was added in
567 // Go 1.21).
568 if len(s1) != len(s2) {
569 return false
570 }
571 for i, s := range s1 {
572 if s != s2[i] {
573 return false
574 }
575 }
576 return true
577}
578
579func TestWasmExport(t *testing.T) {
580 t.Parallel()

Callers 1

TestWebAssemblyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected