Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSetEncoder (0.32 sec)

  1. src/encoding/asn1/marshal_test.go

    	}
    }
    
    func BenchmarkMarshal(b *testing.B) {
    	b.ReportAllocs()
    
    	for i := 0; i < b.N; i++ {
    		for _, test := range marshalTests {
    			Marshal(test.in)
    		}
    	}
    }
    
    func TestSetEncoder(t *testing.T) {
    	testStruct := struct {
    		Strings []string `asn1:"set"`
    	}{
    		Strings: []string{"a", "aa", "b", "bb", "c", "cc"},
    	}
    
    	// Expected ordering of the SET should be:
    	// a, b, c, aa, bb, cc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
Back to top