File: internal_test.go

package info (click to toggle)
golang-github-santhosh-tekuri-jsonschema 5.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 476 kB
  • sloc: makefile: 15
file content (10 lines) | stat: -rw-r--r-- 187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
package jsonschema

import "testing"

func TestQuote(t *testing.T) {
	got, want := quote(`abc"def'ghi`), `'abc"def\'ghi'`
	if got != want {
		t.Fatalf("got: %s want: %s", got, want)
	}
}