Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for 0xg (0.02 sec)

  1. src/math/big/natconv_test.go

    	{"0b2", 0, false, nil, 2, 0, errNoDigits, '2'},
    	{"0B2", 0, false, nil, 2, 0, errNoDigits, '2'},
    	{"0o8", 0, false, nil, 8, 0, errNoDigits, '8'},
    	{"0O8", 0, false, nil, 8, 0, errNoDigits, '8'},
    	{"0xg", 0, false, nil, 16, 0, errNoDigits, 'g'},
    	{"0Xg", 0, false, nil, 16, 0, errNoDigits, 'g'},
    	{"345", 2, false, nil, 2, 0, errNoDigits, '3'},
    
    	// invalid: incorrect use of decimal point
    	{"._", 0, true, nil, 10, 0, errNoDigits, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 16.8K bytes
    - Viewed (0)
  2. src/math/big/intconv_test.go

    	{in: ""},
    	{in: "a"},
    	{in: "z"},
    	{in: "+"},
    	{in: "-"},
    	{in: "0b"},
    	{in: "0o"},
    	{in: "0x"},
    	{in: "0y"},
    	{in: "2", base: 2},
    	{in: "0b2", base: 0},
    	{in: "08"},
    	{in: "8", base: 8},
    	{in: "0xg", base: 0},
    	{in: "g", base: 16},
    
    	// invalid inputs with separators
    	// (smoke tests only - a comprehensive set of tests is in natconv_test.go)
    	{in: "_"},
    	{in: "0_"},
    	{in: "_0"},
    	{in: "-1__0"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 22:58:58 UTC 2019
    - 10K bytes
    - Viewed (0)
  3. src/text/scanner/scanner_test.go

    	testError(t, `01238123`, "<input>:1:9", "invalid digit '8' in octal literal", Int)
    	testError(t, `0x`, "<input>:1:3", "hexadecimal literal has no digits", Int)
    	testError(t, `0xg`, "<input>:1:3", "hexadecimal literal has no digits", Int)
    	testError(t, `'aa'`, "<input>:1:4", "invalid char literal", Char)
    	testError(t, `1.5e`, "<input>:1:5", "exponent has no digits", Float)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
Back to top