Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDecimalInit (0.25 sec)

  1. src/math/big/decimal_test.go

    		{decimal{[]byte("12345"), +10}, "1234500000"},
    	} {
    		if got := test.x.String(); got != test.want {
    			t.Errorf("%v == %s; want %s", test.x, got, test.want)
    		}
    	}
    }
    
    func TestDecimalInit(t *testing.T) {
    	for _, test := range []struct {
    		x     Word
    		shift int
    		want  string
    	}{
    		{0, 0, "0"},
    		{0, -100, "0"},
    		{0, 100, "0"},
    		{1, 0, "1"},
    		{1, 10, "1024"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 05:54:35 UTC 2016
    - 3.3K bytes
    - Viewed (0)
Back to top