Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFormatNumeric (0.33 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 Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top