Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestRemoveAll (0.26 sec)

  1. src/os/removeall_test.go

    package os_test
    
    import (
    	"bytes"
    	"fmt"
    	"internal/testenv"
    	. "os"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    func TestRemoveAll(t *testing.T) {
    	t.Parallel()
    
    	tmpDir := t.TempDir()
    	if err := RemoveAll(""); err != nil {
    		t.Errorf("RemoveAll(\"\"): %v; want nil", err)
    	}
    
    	file := filepath.Join(tmpDir, "file")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.singletonIterator(1);
          }
        }.test();
      }
    
      public void testRemoveAll() {
        List<String> list = newArrayList("a", "b", "c", "d", "e");
        assertTrue(Iterators.removeAll(list.iterator(), newArrayList("b", "d", "f")));
        assertEquals(newArrayList("a", "c", "e"), list);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
Back to top