Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for invalidRule (0.07 sec)

  1. src/bytes/bytes_test.go

    	if string(m) != expect {
    		t.Errorf("drop: expected %q got %q", expect, m)
    	}
    
    	// 6. Invalid rune
    	invalidRune := func(r rune) rune {
    		return utf8.MaxRune + 1
    	}
    	m = Map(invalidRune, []byte("x"))
    	expect = "\uFFFD"
    	if string(m) != expect {
    		t.Errorf("invalidRune: expected %q got %q", expect, m)
    	}
    }
    
    func TestToUpper(t *testing.T) { runStringTests(t, ToUpper, "ToUpper", upperTests) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top