File: ast_test.go

package info (click to toggle)
golang-github-goccy-go-yaml 1.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 660 kB
  • sloc: makefile: 16
file content (11 lines) | stat: -rw-r--r-- 231 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
package ast

import "testing"

func TestEscapeSingleQuote(t *testing.T) {
	expected := `'Victor''s victory'`
	got := escapeSingleQuote("Victor's victory")
	if got != expected {
		t.Fatalf("expected:%s\ngot:%s", expected, got)
	}
}