Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestSortIntSlice (0.34 sec)

  1. src/slices/sort_test.go

    var strs = [...]string{"", "Hello", "foo", "bar", "foo", "f00", "%*&^*&^&", "***"}
    
    func TestSortIntSlice(t *testing.T) {
    	data := Clone(ints[:])
    	Sort(data)
    	if !IsSorted(data) {
    		t.Errorf("sorted %v", ints)
    		t.Errorf("   got %v", data)
    	}
    }
    
    func TestSortFuncIntSlice(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/sort/sort_test.go

    var strings = [...]string{"", "Hello", "foo", "bar", "foo", "f00", "%*&^*&^&", "***"}
    
    func TestSortIntSlice(t *testing.T) {
    	data := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	if !IsSorted(a) {
    		t.Errorf("sorted %v", ints)
    		t.Errorf("   got %v", data)
    	}
    }
    
    func TestSortFloat64Slice(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top