Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMarshalNumberZeroVal (0.14 sec)

  1. src/encoding/json/decode_test.go

    			if string(got) != tt.want || err != nil {
    				t.Errorf("%s: Marshal(%q):\n\tgot:  (%q, %v)\n\twant: (%q, nil)", tt.Where, tt.in, got, err, tt.want)
    			}
    		})
    	}
    }
    
    func TestMarshalNumberZeroVal(t *testing.T) {
    	var n Number
    	out, err := Marshal(n)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	got := string(out)
    	if got != "0" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top