Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFormatNumeric (0.08 sec)

  1. src/archive/tar/strconv_test.go

    				t.Errorf("parseNumeric(%q): got parsing success, want failure", v.in)
    			}
    		}
    		if ok && got != v.want {
    			t.Errorf("parseNumeric(%q): got %d, want %d", v.in, got, v.want)
    		}
    	}
    }
    
    func TestFormatNumeric(t *testing.T) {
    	vectors := []struct {
    		in   int64
    		want string
    		ok   bool
    	}{
    		// Test base-8 (octal) encoded values.
    		{0, "0\x00", true},
    		{7, "7\x00", true},
    		{8, "\x80\x08", true},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
Back to top