Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFormatBool (0.15 sec)

  1. src/strconv/atob_test.go

    			}
    			if b != test.out {
    				t.Errorf("ParseBool(%s) = %t; want %t", test.in, b, test.out)
    			}
    		}
    	}
    }
    
    var boolString = map[bool]string{
    	true:  "true",
    	false: "false",
    }
    
    func TestFormatBool(t *testing.T) {
    	for b, s := range boolString {
    		if f := FormatBool(b); f != s {
    			t.Errorf("FormatBool(%v) = %q; want %q", b, f, s)
    		}
    	}
    }
    
    type appendBoolTest struct {
    	b   bool
    	in  []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 18:08:43 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top