Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reAssemble (0.14 sec)

  1. src/strings/strings_test.go

    	for _, tt := range RunesTests {
    		a := []rune(tt.in)
    		if !runesEqual(a, tt.out) {
    			t.Errorf("[]rune(%q) = %v; want %v", tt.in, a, tt.out)
    			continue
    		}
    		if !tt.lossy {
    			// can only test reassembly if we didn't lose information
    			s := string(a)
    			if s != tt.in {
    				t.Errorf("string([]rune(%q)) = %x; want %x", tt.in, s, tt.in)
    			}
    		}
    	}
    }
    
    func TestReadByte(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    		tin := []byte(tt.in)
    		a := Runes(tin)
    		if !runesEqual(a, tt.out) {
    			t.Errorf("Runes(%q) = %v; want %v", tin, a, tt.out)
    			continue
    		}
    		if !tt.lossy {
    			// can only test reassembly if we didn't lose information
    			s := string(a)
    			if s != tt.in {
    				t.Errorf("string(Runes(%q)) = %x; want %x", tin, s, tin)
    			}
    		}
    	}
    }
    
    type TrimTest struct {
    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