Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestUnquote (0.21 sec)

  1. src/strconv/quote_test.go

    	"\"\n\"",
    	"\"\\n\n\"",
    	"'\n'",
    	`"\udead"`,
    	`"\ud83d\ude4f"`,
    }
    
    func TestUnquote(t *testing.T) {
    	for _, tt := range unquotetests {
    		testUnquote(t, tt.in, tt.out, nil)
    	}
    	for _, tt := range quotetests {
    		testUnquote(t, tt.out, tt.in, nil)
    	}
    	for _, s := range misquoted {
    		testUnquote(t, s, "", ErrSyntax)
    	}
    }
    
    // Issue 23685: invalid UTF-8 should not go through the fast path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top